feat(site): deploy the opencode.ai site separately from the docs (#62209)

This commit is contained in:
Dax
2026-11-05 17:53:39 -05:00
committed by GitHub
Unverified
parent 84262f9277
commit 24008abeb3
1538 changed files with 688 additions and 971 deletions
@@ -1,4 +1,4 @@
name: deploy-meta
name: deploy-site
on:
push:
@@ -8,7 +8,7 @@ on:
workflow_dispatch:
concurrency:
group: deploy-meta-${{ github.ref_name }}
group: deploy-site-${{ github.ref_name }}
cancel-in-progress: false
permissions:
@@ -24,17 +24,16 @@ jobs:
- uses: ./.github/actions/setup-bun
- name: Typecheck
working-directory: services/meta
run: bun run typecheck:tsc
# The workflow's own token, at build time only: script/github-snapshot.ts records the repo
# numbers and releases the site falls back to. The Worker never gets a GitHub token.
- name: Build
working-directory: services/meta
run: bun run build --mode ${{ github.ref_name == 'production' && 'production' || 'dev' }}
working-directory: services/site
run: bun script/build.ts --mode ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Deploy
working-directory: services/meta
run: bun run deploy --mode ${{ github.ref_name == 'production' && 'production' || 'dev' }}
working-directory: services/site
run: bunx cf deploy --prebuilt --mode ${{ github.ref_name }}
env:
CLOUDFLARE_ACCOUNT_ID: 15d29c8639fd3733b1b5486a2acfd968
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+3 -5
View File
@@ -24,16 +24,14 @@ jobs:
- uses: ./.github/actions/setup-bun
# The workflow's own token, at build time only: script/github-snapshot.ts records the repo
# numbers and releases the site falls back to. The Worker never gets a GitHub token.
- name: Build
working-directory: services/www
run: bun script/build.ts --mode ${{ github.ref_name }}
run: bun run build
env:
GITHUB_TOKEN: ${{ github.token }}
CLOUDFLARE_ENV: ${{ github.ref_name == 'production' && 'production' || 'dev' }}
- name: Deploy
working-directory: services/www
run: bunx cf deploy --prebuilt --mode ${{ github.ref_name }}
run: bun run deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}