GeezerVison is showing github.com — ci · gulunmu/opencode@b1b8f6c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -221,8 +221,7 @@ jobs: |
221 | 221 |
|
222 | 222 | - run: ./script/publish-complete.ts |
223 | 223 | env: |
224 | | - OPENCODE_BUMP: ${{ inputs.bump }} |
225 | | - OPENCODE_VERSION: ${{ inputs.version }} |
| 224 | + OPENCODE_VERSION: ${{ needs.publish.outputs.tagName }} |
226 | 225 | AUR_KEY: ${{ secrets.AUR_KEY }} |
227 | 226 | GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} |
228 | 227 | OPENCODE_RELEASE_TAG: ${{ needs.publish.outputs.tagName }} |
Collapse file
Copy file name to clipboardExpand all lines: packages/tauri/scripts/prepare.ts +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 | import { $ } from "bun" |
4 | 4 |
|
5 | 5 | import { copyBinaryToSidecarFolder, getCurrentSidecar } from "./utils" |
| 6 | +import { Script } from "@opencode-ai/script" |
6 | 7 |
|
7 | 8 | const sidecarConfig = getCurrentSidecar() |
8 | 9 |
|
9 | 10 | const dir = "src-tauri/target/opencode-binaries" |
10 | 11 |
|
11 | 12 | await $`mkdir -p ${dir}` |
12 | | -await $`gh release download ${Bun.env.OPENCODE_RELEASE_TAG} --pattern ${sidecarConfig.ocBinary}.${sidecarConfig.assetExt} --repo sst/opencode --skip-existing --dir ${dir}` |
| 13 | +await $`gh release download v${Script.version} --pattern ${sidecarConfig.ocBinary}.${sidecarConfig.assetExt} --repo sst/opencode --skip-existing --dir ${dir}` |
13 | 14 |
|
14 | 15 | if (sidecarConfig.assetExt === "tar.gz") { |
15 | 16 | await $`tar -xvzf ${dir}/${sidecarConfig.ocBinary}.${sidecarConfig.assetExt} -C ${dir}` |
|
Collapse file
Copy file name to clipboardExpand all lines: script/publish-complete.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import { Script } from "@opencode-ai/script" |
4 | 4 | import { $ } from "bun" |
5 | 5 |
|
6 | 6 | if (!Script.preview) { |
7 | | - await $`gh release edit ${process.env.OPENCODE_RELEASE_TAG} --draft=false` |
| 7 | + await $`gh release edit v${Script.version} --draft=false` |
8 | 8 | } |
9 | 9 |
|
10 | 10 | await $`bun install` |
|