Skip to content

fix: JST timestamp and PDF cache busting #57

fix: JST timestamp and PDF cache busting

fix: JST timestamp and PDF cache busting #57

Workflow file for this run

name: Deploy Hanawa CMS
on:
push:
branches: [main]
paths:
- 'packages/hanawa-cms/**'
- '.github/workflows/deploy-hanawa.yml'
workflow_dispatch: # Allow manual trigger
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: packages/hanawa-cms/package-lock.json
- name: Install dependencies
working-directory: packages/hanawa-cms
run: npm ci --legacy-peer-deps
- name: Build and Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: packages/hanawa-cms
# Build first (wrangler-action provides authenticated environment)
preCommands: npm run build
command: pages deploy .svelte-kit/cloudflare --project-name=hanawa-cms