Skip to content

Improve verifier pipeline and tighten local dev hygiene #65

Improve verifier pipeline and tighten local dev hygiene

Improve verifier pipeline and tighten local dev hygiene #65

Workflow file for this run

name: Deploy Pages
on:
push:
branches: [main]
paths-ignore:
- 'worker/**'
- 'infra/terraform/**'
- '.github/workflows/cloudflare-domain-automation.yml'
- '.github/workflows/deploy-worker.yml'
workflow_dispatch:
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
deploy:
name: Deploy static site to Cloudflare Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Cloudflare secrets
id: precheck
shell: bash
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
if [[ -n "$CLOUDFLARE_API_TOKEN" && -n "$CLOUDFLARE_ACCOUNT_ID" ]]; then
echo "ready=true" >> "$GITHUB_OUTPUT"
else
echo "ready=false" >> "$GITHUB_OUTPUT"
fi
- name: Skip deploy (missing secrets)
if: steps.precheck.outputs.ready != 'true'
run: echo "Skipping Pages deploy. Set CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID in GitHub Actions secrets."
- name: Deploy to Pages
if: steps.precheck.outputs.ready == 'true'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy . --project-name=citereview --branch=main