mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 23:04:55 +00:00
sync
This commit is contained in:
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@@ -70,6 +70,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
OPENCODE_VERSION: ${{ needs.version.outputs.version }}
|
OPENCODE_VERSION: ${{ needs.version.outputs.version }}
|
||||||
OPENCODE_RELEASE: ${{ needs.version.outputs.release }}
|
OPENCODE_RELEASE: ${{ needs.version.outputs.release }}
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -179,17 +179,15 @@ for (const item of targets) {
|
|||||||
binaries[name] = Script.version
|
binaries[name] = Script.version
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const key of Object.keys(binaries)) {
|
if (Script.release) {
|
||||||
if (key.includes("linux")) {
|
for (const key of Object.keys(binaries)) {
|
||||||
await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
|
if (key.includes("linux")) {
|
||||||
} else {
|
await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
|
||||||
await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
|
} else {
|
||||||
|
await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
await $`gh release upload v${Script.release} ./dist/*.zip ./dist/*.tar.gz --clobber`
|
||||||
}
|
}
|
||||||
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 }
|
export { binaries }
|
||||||
|
|||||||
Reference in New Issue
Block a user