-
-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (31 loc) · 1011 Bytes
/
deploy.yml
File metadata and controls
34 lines (31 loc) · 1011 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
32
33
34
name: Deploy
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
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 }}