# Deploys web/ to Cloudflare Workers on every push that touches it. # Inert until two repo secrets exist (Settings → Actions → Secrets): # CLOUDFLARE_API_TOKEN token from the "Edit Cloudflare Workers" template # CLOUDFLARE_ACCOUNT_ID dashboard → Workers & Pages, right sidebar # See web/README.md for the full deploy story (custom domains, manual deploy). name: deploy-site on: push: branches: [main, master] paths: ["web/**"] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "22" - name: Deploy Worker + assets working-directory: web env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} run: npx --yes wrangler@4 deploy