diff options
| author | Dax Raad <[email protected]> | 2025-12-11 11:41:52 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-12-11 11:41:54 -0500 |
| commit | 89d9856ed247aec3eb3ffb435ed2f636f8af1aeb (patch) | |
| tree | 0e0422728063768284683c22cff815819e409537 /script/publish.ts | |
| parent | c12be73bf7fcea92fa5ac59d2f3f9200f7db07f1 (diff) | |
| download | opencode-89d9856ed247aec3eb3ffb435ed2f636f8af1aeb.tar.gz opencode-89d9856ed247aec3eb3ffb435ed2f636f8af1aeb.zip | |
ci: enable tauri desktop app to be published with GitHub release ID and tag name
Diffstat (limited to 'script/publish.ts')
| -rwxr-xr-x | script/publish.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/publish.ts b/script/publish.ts index d89d270ae..29b47fa68 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -156,4 +156,8 @@ if (!Script.preview) { await $`git push origin HEAD --tags --no-verify --force-with-lease` await new Promise((resolve) => setTimeout(resolve, 5_000)) await $`gh release create v${Script.version} --title "v${Script.version}" --notes ${notes.join("\n") || "No notable changes"} ./packages/opencode/dist/*.zip ./packages/opencode/dist/*.tar.gz` + const release = await $`gh release view v${Script.version} --json id,tagName`.json() + if (process.env.GITHUB_OUTPUT) { + await Bun.write(process.env.GITHUB_OUTPUT, `releaseId=${release.id}\ntagName=${release.tagName}\n`) + } } |
