Skip to content

Commit f9c9c5a

Browse files
Add Cloudflare Pages deploy workflow
Auto-deploys to Cloudflare Pages on push to main.
1 parent 311f233 commit f9c9c5a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
permissions:
11+
contents: read
12+
deployments: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: cloudflare/wrangler-action@v3
17+
with:
18+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
19+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
20+
command: pages deploy . --project-name pythonankara-com --branch main --commit-dirty=true

0 commit comments

Comments
 (0)