mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
chore: generate
This commit is contained in:
parent
7a3e82ec5d
commit
45447e3336
1 changed files with 3 additions and 3 deletions
|
|
@ -39,13 +39,13 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
|
|||
|
||||
const tags = [Script.channel]
|
||||
|
||||
if(Bun.env.ACTIONS_RUNTIME_TOKEN) {
|
||||
if (Bun.env.ACTIONS_RUNTIME_TOKEN) {
|
||||
const { DefaultArtifactClient } = await import("@actions/artifact")
|
||||
|
||||
const artifactClient = new DefaultArtifactClient();
|
||||
const artifactClient = new DefaultArtifactClient()
|
||||
|
||||
for await (const folder of $`ls ./dist`.lines()) {
|
||||
if (!folder.startsWith("opencode-")) continue;
|
||||
if (!folder.startsWith("opencode-")) continue
|
||||
|
||||
const files = await Array.fromAsync(glob(`./dist/${folder}/bin/*`))
|
||||
await artifactClient.uploadArtifact(folder, files, process.cwd())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue