mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-29 05:53:24 +08:00
Move files deployments to Wrangler, make CLI and desktop own their publishing destinations, add direct-download update metadata and desktop feeds, and refresh installation docs.
35 lines
823 B
YAML
35 lines
823 B
YAML
name: deploy-files
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- v2
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: deploy-files-${{ github.ref_name }}
|
|
cancel-in-progress: false
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
deploy:
|
|
if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'v2')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
|
|
|
- uses: ./.github/actions/setup-bun
|
|
|
|
- name: Typecheck
|
|
working-directory: services/files
|
|
run: bun typecheck
|
|
|
|
- name: Deploy
|
|
working-directory: services/files
|
|
run: bun run deploy --env ${{ github.ref_name == 'v2' && 'production' || 'dev' }}
|
|
env:
|
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|