Skip to content

Commit b391746

Browse files
committed
add Cloudflare Pages deployment workflow
1 parent c117d87 commit b391746

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to Cloudflare Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
deployments: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Bun
20+
uses: oven-sh/setup-bun@v2
21+
with:
22+
bun-version: latest
23+
24+
- name: Install dependencies
25+
run: bun install
26+
27+
- name: Build
28+
run: bun run build
29+
30+
- name: Deploy to Cloudflare Pages
31+
uses: cloudflare/pages-action@v1
32+
with:
33+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
34+
projectName: confitty
35+
directory: dist/confitty/browser
36+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)