summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/publish.yml18
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 }}