Skip to content

Commit 20b8efc

Browse files
author
Frank
committed
wip: github actions
1 parent a86d421 commit 20b8efc

3 files changed

Lines changed: 29 additions & 5 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: publish-github-action
2+
3+
on:
4+
workflow_dispatch:
5+
6+
concurrency: ${{ github.workflow }}-${{ github.ref }}
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- run: git fetch --force --tags
17+
18+
- uses: oven-sh/setup-bun@v2
19+
with:
20+
bun-version: 1.2.17
21+
22+
- name: Publish
23+
run: ./script/publish-github-action.ts
24+
working-directory: ./packages/opencode

packages/opencode/script/publish-github-action.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { $ } from "bun"
44

5-
await $`git tag -d v1`
6-
await $`git push origin :refs/tags/v1`
7-
await $`git tag -a v1 -m "Update v1 to latest"`
8-
await $`git push origin v1`
5+
await $`git tag -d github-v1`
6+
await $`git push origin :refs/tags/github-v1`
7+
await $`git tag -a github-v1 -m "Update github-v1 to latest"`
8+
await $`git push origin github-v1`

packages/opencode/src/cli/cmd/install-github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ jobs:
231231
fetch-depth: 1
232232
233233
- name: Run opencode
234-
uses: sst/opencode/sdks/github@dev${envStr}
234+
uses: sst/opencode/sdks/github@github-v1${envStr}
235235
with:
236236
model: ${provider}/${model}
237237
`.trim(),

0 commit comments

Comments
 (0)