mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 01:08:31 +03:00
feat(site): deploy the opencode.ai site separately from the docs (#62209)
This commit is contained in:
@@ -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 }}
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user