diff options
| author | Dax <[email protected]> | 2025-07-31 01:00:29 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-31 01:00:29 -0400 |
| commit | 33cef075d228e80aefb44671ec68e1989c2855a8 (patch) | |
| tree | d43a5c1bcc40d4d938eacccfd923c80301706cf1 /.github | |
| parent | b09ebf464552f3899120b22c7a8572669000a554 (diff) | |
| download | opencode-33cef075d228e80aefb44671ec68e1989c2855a8.tar.gz opencode-33cef075d228e80aefb44671ec68e1989c2855a8.zip | |
ci: new publish method (#1451)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/publish.yml | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c750c47db..ac09928cf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,13 +2,11 @@ name: publish on: workflow_dispatch: - push: - branches: - - dev - tags: - - "*" - - "!vscode-v*" - - "!github-v*" + inputs: + version: + description: "Version to publish" + required: true + type: string concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -53,11 +51,7 @@ jobs: - name: Publish run: | bun install - if [ "${{ startsWith(github.ref, 'refs/tags/') }}" = "true" ]; then - ./script/publish.ts - else - ./script/publish.ts --snapshot - fi + OPENCODE_VERSION=${{ inputs.version }} ./script/publish.ts working-directory: ./packages/opencode env: GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} |
