Skip to content

chore(ptcg-refresh): drop stale ptcg_cache mention in permissions com… #5

chore(ptcg-refresh): drop stale ptcg_cache mention in permissions com…

chore(ptcg-refresh): drop stale ptcg_cache mention in permissions com… #5

Workflow file for this run

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