Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
YAML
12345678910111213141516171819202122232425262728293031323334353637name: deploy-www
on: push: branches: - dev - v2 workflow_dispatch:
concurrency: group: deploy-www-${{ 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: Build working-directory: services/www run: bun run build env: CLOUDFLARE_ENV: ${{ github.ref_name == 'v2' && 'production' || 'dev' }}
- name: Deploy working-directory: services/www run: bun run deploy env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}