From f7f3ed1fa9df9f3ba0c15c182c55680ba770c1a6 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Tue, 16 Dec 2025 22:51:31 +0800 Subject: [PATCH] don't make release public until finished --- .github/workflows/publish.yml | 8 ++++++++ script/publish.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ebfc5059b..a9ca445af 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -197,3 +197,11 @@ jobs: releaseId: ${{ needs.publish.outputs.releaseId }} tagName: ${{ needs.publish.outputs.tagName }} releaseAssetNamePattern: opencode-desktop-[platform]-[arch][ext] + + publish-release: + needs: + - publish + - publish-tauri + runs-on: blacksmith-4vcpu-ubuntu-2404 + steps: + - run: gh release edit ${{ steps.publish.outputs.tagName }} --draft=false diff --git a/script/publish.ts b/script/publish.ts index 29b47fa68..121da8baa 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -155,7 +155,7 @@ if (!Script.preview) { await $`git cherry-pick HEAD..origin/dev`.nothrow() 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` + await $`gh release create v${Script.version} -d --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`)