chore(ptcg-refresh): drop stale ptcg_cache mention in permissions com… #5
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 Worker | |
| # Runs wrangler deploy whenever worker source lands on main. The scrape | |
| # workflow already handles data imports; this one just ships code. Paths | |
| # filter so weekly scrape commits that only touch data/ or scripts/ | |
| # don't re-deploy the worker needlessly. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'src/**' | |
| - 'wrangler.toml' | |
| - 'wrangler.jsonc' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Deploy to Cloudflare | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| run: npx wrangler deploy |