mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Keep release a draft until all builds are finished (#5632)
Co-authored-by: opencode <opencode@sst.dev> Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
be8116e2ea
commit
452c991f58
21 changed files with 56 additions and 39 deletions
|
|
@ -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`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue