Skip to content

Commit 7b3d4ce

Browse files
committed
chore(ci): deploy the update service from production
1 parent 5caf1f9 commit 7b3d4ce

2 files changed

Lines changed: 33 additions & 7 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: deploy-update
2+
3+
on:
4+
push:
5+
branches:
6+
- production
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: deploy-update-${{ github.ref_name }}
11+
cancel-in-progress: false
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
deploy:
18+
if: github.repository == 'anomalyco/opencode' && github.ref_name == 'production'
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
22+
23+
- uses: ./.github/actions/setup-bun
24+
25+
- name: Typecheck
26+
working-directory: services/update
27+
run: bun typecheck
28+
29+
- name: Deploy
30+
working-directory: services/update
31+
run: bun run deploy
32+
env:
33+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

‎.github/workflows/publish.yml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ jobs:
4949

5050
- uses: ./.github/actions/setup-bun
5151

52-
- name: Deploy update service
53-
if: github.ref_name == 'dev'
54-
working-directory: services/update
55-
run: bun run deploy
56-
env:
57-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
58-
5952
- name: Setup git committer
6053
id: committer
6154
uses: ./.github/actions/setup-git-committer

0 commit comments

Comments
 (0)