Add GitHub community standards and issue templates #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Cloudflare Pages | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Build website | |
| run: | | |
| # Copy website files to build directory | |
| mkdir -p build | |
| cp -r website/* build/ | |
| cp _headers build/ | |
| cp _redirects build/ | |
| # Update version in files | |
| VERSION=$(grep 'VERSION=' src/claude-auto-commit.sh | cut -d'"' -f2) | |
| find build -name "*.html" -type f -exec sed -i "s/version-1.0.0/version-$VERSION/g" {} \; | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/pages-action@v1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: claude-auto-commit | |
| directory: build | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| wranglerVersion: '3' |