diff options
| author | Aiden Cline <[email protected]> | 2025-12-19 21:41:18 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-19 21:41:18 -0600 |
| commit | 1d9058d26bb002696212834c79de35317110ffe1 (patch) | |
| tree | bb9e3ef0e12a60bf92e49fae3f907901ecb0d5ea | |
| parent | 39e2a5f5957645465b3976f8606c5d3a25dc1db7 (diff) | |
| download | opencode-1d9058d26bb002696212834c79de35317110ffe1.tar.gz opencode-1d9058d26bb002696212834c79de35317110ffe1.zip | |
ci: fix archive
| -rwxr-xr-x | packages/opencode/script/publish.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts index 9b93caf11..010516e7c 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`] |
