Output wrangler #10
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 HowOldAreMyCats to Cloudflare Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| deploy-docs: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| deployments: write | |
| issues: write | |
| repository-projects: write | |
| name: Deploy HowOldAreMyCats to Cloudflare Pages | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Verify Node installation | |
| run: | | |
| which node | |
| which npm | |
| node --version | |
| npm --version | |
| - name: Install Wrangler | |
| run: npm install -g wrangler | |
| - name: Verify Wrangler Config | |
| run: cat wrangler.toml | |
| - name: Install & Build | |
| run: | | |
| npm install | |
| npm run build | |
| working-directory: . | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy ./build --project-name=howoldaremycats | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} |