Skip to content

The open source coding agent.

TypeScript

Update publish workflow to support snapshot releases on dontlook branch

Dax Raad52ec134b2d4e
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 2d91267fdc3..cf9951b447c 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 }}