Skip to content

Commit 2463828

Browse files
committed
Feat: deploy action
1 parent 9760bd7 commit 2463828

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy to Cloudflare Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup Bun
24+
uses: oven-sh/setup-bun@v1
25+
with:
26+
bun-version: latest
27+
28+
- name: Install dependencies
29+
run: bun install
30+
31+
- name: Build
32+
run: bun run build
33+
34+
- name: Deploy to Cloudflare Pages
35+
uses: cloudflare/pages-action@v1
36+
with:
37+
apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
38+
accountId: ${{ secrets.CLOUDFLARE_PAGES_ACCOUNT }}
39+
projectName: ${{ vars.CLOUDFLARE_PAGES_NAME }}
40+
directory: dist
41+
wranglerVersion: 3

0 commit comments

Comments
 (0)