Skip to content

The open source coding agent.

TypeScript

ci: fix archive

Aiden Cline1d9058d26bb0
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts
index 9b93caf11f4..010516e7c3f 100755
--- a/packages/opencode/script/publish.ts
+++ b/packages/opencode/script/publish.ts
@@ -53,6 +53,15 @@ for (const tag of tags) {
}
if (!Script.preview) {
+ // Create archives for GitHub release
+ 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`)
+ }
+ }
+
const image = "ghcr.io/sst/opencode"
const platforms = "linux/amd64,linux/arm64"
const tags = [`${image}:${Script.version}`, `${image}:latest`]