-
-
Notifications
You must be signed in to change notification settings - Fork 17
30 lines (28 loc) · 937 Bytes
/
deploy.yml
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
on:
push:
branches:
- main
jobs:
build:
runs-on: warp-ubuntu-latest-x64-4x-spot
steps:
- uses: actions/checkout@v4
- name: Setup bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Generate static pages
run: bun run build
env:
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }}
CLOUDFLARE_TURNSTILE_SITE_KEY: ${{ secrets.CLOUDFLARE_TURNSTILE_SITE_KEY }}
- name: Copy header & redirect specific files
run: cp _headers dist/_headers & cp _redirects dist/_redirects
- name: Publish CF website
run: bunx wrangler@latest pages deploy dist --project-name capgo-website --branch main
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}