Skip to content

Commit e48f89c

Browse files
committed
chore: added pages deployment via CI.
1 parent f311d0f commit e48f89c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration
2+
# - Needs a CF Domain (so you can get CLOUDFLARE_ACCOUNT_ID)
3+
4+
name: Cloudflare Pages Deployment
5+
6+
on: [push]
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
deployments: write
13+
name: Deploy to Cloudflare Pages
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- uses: oven-sh/setup-bun@v2
18+
- run: bun install --frozen-lockfile
19+
- name: Deploy
20+
uses: cloudflare/wrangler-action@v3
21+
with:
22+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
23+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
24+
command: pages deploy apps/site/dist/client --project-name=solid-number-flow
25+
branch: ${{ github.ref_name }}
26+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)