This commit is contained in:
Dax Raad
2026-01-29 12:25:30 -05:00
parent a2a828f423
commit 76c002faf4
3 changed files with 15 additions and 1 deletions
+13
View File
@@ -179,4 +179,17 @@ for (const item of targets) {
binaries[name] = Script.version
}
for (const key of Object.keys(binaries)) {
if (key.includes("linux")) {
await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
} else {
await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
}
}
if (!Script.release) {
throw new Error("Missing OPENCODE_RELEASE environment variable")
}
await $`gh release upload v${Script.release} ./dist/*.zip ./dist/*.tar.gz --clobber`
export { binaries }