-
-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (28 loc) · 911 Bytes
/
deploy.yml
File metadata and controls
30 lines (28 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Deploy to Cloudflare Pages
on:
push:
branches: ["master"]
jobs:
deploy:
runs-on: ubuntu-latest
name: Build and deploy
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install frontend dependencies
run: bun install
- name: Build frontend
run: cd web && bun run build
env:
GITHUB_CLIENT_SECRET: ${{ secrets.VITE_GITHUB_CLIENT_SECRET }}
- name: "Deploy to Cloudflare Pages"
uses: "AdrianGonz97/refined-cf-pages-action@v1"
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: "diffs"
directory: "web/.svelte-kit/cloudflare"
deploymentName: Production