fix: domain issue #265
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |