ci: fix archive
This commit is contained in:
parent
38eb36f4f6
commit
f85a57d4af
1 changed files with 9 additions and 0 deletions
|
|
@ -53,6 +53,15 @@ for (const tag of tags) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Script.preview) {
|
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 image = "ghcr.io/sst/opencode"
|
||||||
const platforms = "linux/amd64,linux/arm64"
|
const platforms = "linux/amd64,linux/arm64"
|
||||||
const tags = [`${image}:${Script.version}`, `${image}:latest`]
|
const tags = [`${image}:${Script.version}`, `${image}:latest`]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue