From b1b8f6cf71597b3000d1b245a95dbc023687c005 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sat, 20 Dec 2025 09:57:19 -0500 Subject: [PATCH] ci --- .github/workflows/publish.yml | 3 +-- packages/tauri/scripts/prepare.ts | 3 ++- script/publish-complete.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 77d7bb30e..cdc8bd741 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -221,8 +221,7 @@ jobs: - run: ./script/publish-complete.ts env: - OPENCODE_BUMP: ${{ inputs.bump }} - OPENCODE_VERSION: ${{ inputs.version }} + OPENCODE_VERSION: ${{ needs.publish.outputs.tagName }} AUR_KEY: ${{ secrets.AUR_KEY }} GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} OPENCODE_RELEASE_TAG: ${{ needs.publish.outputs.tagName }} diff --git a/packages/tauri/scripts/prepare.ts b/packages/tauri/scripts/prepare.ts index 23cf3dc5d..692e0dd78 100755 --- a/packages/tauri/scripts/prepare.ts +++ b/packages/tauri/scripts/prepare.ts @@ -3,13 +3,14 @@ import { $ } from "bun" import { copyBinaryToSidecarFolder, getCurrentSidecar } from "./utils" +import { Script } from "@opencode-ai/script" const sidecarConfig = getCurrentSidecar() const dir = "src-tauri/target/opencode-binaries" await $`mkdir -p ${dir}` -await $`gh release download ${Bun.env.OPENCODE_RELEASE_TAG} --pattern ${sidecarConfig.ocBinary}.${sidecarConfig.assetExt} --repo sst/opencode --skip-existing --dir ${dir}` +await $`gh release download v${Script.version} --pattern ${sidecarConfig.ocBinary}.${sidecarConfig.assetExt} --repo sst/opencode --skip-existing --dir ${dir}` if (sidecarConfig.assetExt === "tar.gz") { await $`tar -xvzf ${dir}/${sidecarConfig.ocBinary}.${sidecarConfig.assetExt} -C ${dir}` diff --git a/script/publish-complete.ts b/script/publish-complete.ts index aae1a3524..a3bdceae0 100755 --- a/script/publish-complete.ts +++ b/script/publish-complete.ts @@ -4,7 +4,7 @@ import { Script } from "@opencode-ai/script" import { $ } from "bun" if (!Script.preview) { - await $`gh release edit ${process.env.OPENCODE_RELEASE_TAG} --draft=false` + await $`gh release edit v${Script.version} --draft=false` } await $`bun install`