There was an error while loading. Please reload this page.
1 parent c117d87 commit b391746Copy full SHA for b391746
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,36 @@
1
+name: Deploy to Cloudflare Pages
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
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
33
+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
34
+ projectName: confitty
35
+ directory: dist/confitty/browser
36
+ gitHubToken: ${{ secrets.GITHUB_TOKEN }}
0 commit comments