ci: fix archive

This commit is contained in:
Aiden Cline 2025-12-19 21:41:18 -06:00
parent 39e2a5f595
commit 1d9058d26b

View file

@ -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`]