Skip to content

Commit 8f4f4a2

Browse files
committed
wip
1 parent 116d10a commit 8f4f4a2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Cloudflare Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-24.04
13+
permissions:
14+
contents: read
15+
deployments: write
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Setup tools
20+
uses: jdx/mise-action@v2
21+
- name: Install Dependencies
22+
run: bun install --frozen-lockfile
23+
- name: Build
24+
run: bun run build
25+
- name: Publish to Cloudflare Pages
26+
uses: cloudflare/wrangler-action@v3
27+
with:
28+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
30+
command: pages deploy --commit-dirty=true
31+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)