mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 02:04:22 +01:00
ci: new publish method (#1451)
This commit is contained in:
15
packages/sdk/stainless/generate.ts
Executable file
15
packages/sdk/stainless/generate.ts
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bun
|
||||
import { $ } from "bun"
|
||||
const dir = new URL(".", import.meta.url).pathname
|
||||
process.chdir(dir)
|
||||
|
||||
console.log("=== Generating Stainless SDK ===")
|
||||
console.log(process.cwd())
|
||||
|
||||
await $`rm -rf go`
|
||||
await $`bun run ../../opencode/src/index.ts generate > openapi.json`
|
||||
await $`stl builds create --branch dev --pull --allow-empty --+target go`
|
||||
|
||||
await $`rm -rf ../go`
|
||||
await $`mv opencode-go/ ../go`
|
||||
await $`rm -rf ../go/.git`
|
||||
Reference in New Issue
Block a user