summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-12 14:10:29 -0400
committerDax Raad <[email protected]>2025-06-12 14:10:29 -0400
commit52ec134b2d4e2720f07f74741fb9489be28d01d4 (patch)
tree85a7ad75f73fe1de30b9f1e9d5a9763026f06552 /.github
parentdb88bede05912f7d2bf257e379ac6ceaaaf47dbf (diff)
downloadopencode-52ec134b2d4e2720f07f74741fb9489be28d01d4.tar.gz
opencode-52ec134b2d4e2720f07f74741fb9489be28d01d4.zip
Update publish workflow to support snapshot releases on dontlook branch
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <[email protected]>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/publish.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 2d91267fd..cf9951b44 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -3,6 +3,8 @@ name: publish
on:
workflow_dispatch:
push:
+ branches:
+ - dontlook
tags:
- "*"
@@ -38,9 +40,14 @@ jobs:
echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- - run: |
+ - name: Publish
+ run: |
bun install
- ./script/publish.ts
+ if [[ "${{ github.ref }}" == refs/tags/* ]]; then
+ ./script/publish.ts
+ else
+ ./script/publish.ts --snapshot
+ fi
working-directory: ./packages/opencode
env:
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}