-
-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (29 loc) · 988 Bytes
/
deploy.yml
File metadata and controls
31 lines (29 loc) · 988 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
31
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@v4
- 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
- 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
env:
VITE_GITHUB_CLIENT_ID: ${{ secrets.VITE_GITHUB_CLIENT_ID }}
VITE_GITHUB_CLIENT_SECRET: ${{ secrets.VITE_GITHUB_CLIENT_SECRET }}