add: Cloudflare Pages deploy workflow template

This commit is contained in:
2026-03-14 15:20:46 -05:00
parent db9be9b518
commit c95472faf5

View File

@@ -0,0 +1,26 @@
name: Deploy to Cloudflare
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run build
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name ${{ github.event.repository.name }}