mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
remove actions artifact uploading
This commit is contained in:
parent
fe2626a4ea
commit
af5ebabd03
1 changed files with 0 additions and 13 deletions
|
|
@ -39,19 +39,6 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
|
|||
|
||||
const tags = [Script.channel]
|
||||
|
||||
if (Bun.env.ACTIONS_RUNTIME_TOKEN) {
|
||||
const { DefaultArtifactClient } = await import("@actions/artifact")
|
||||
|
||||
const artifactClient = new DefaultArtifactClient()
|
||||
|
||||
for await (const folder of $`ls ./dist`.lines()) {
|
||||
if (!folder.startsWith("opencode-")) continue
|
||||
|
||||
const files = await Array.fromAsync(glob(`./dist/${folder}/bin/*`))
|
||||
await artifactClient.uploadArtifact(folder, files, process.cwd())
|
||||
}
|
||||
}
|
||||
|
||||
const tasks = Object.entries(binaries).map(async ([name]) => {
|
||||
if (process.platform !== "win32") {
|
||||
await $`chmod -R 755 .`.cwd(`./dist/${name}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue