Skip to content

Commit 32d23a7

Browse files
kanclaude
andcommitted
Add GitHub Actions deploy workflow
Auto-deploy to Cloudflare Pages on push to main. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ba44358 commit 32d23a7

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy to Cloudflare Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 22
15+
cache: npm
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npx wrangler pages deploy dist --project-name=fushihara-net
19+
env:
20+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
21+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)