Skip to content

Commit 52ec134

Browse files
thdxrOpenCode
andcommitted
Update publish workflow to support snapshot releases on dontlook branch
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <noreply@opencode.ai>
1 parent db88bed commit 52ec134

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: publish
33
on:
44
workflow_dispatch:
55
push:
6+
branches:
7+
- dontlook
68
tags:
79
- "*"
810

@@ -38,9 +40,14 @@ jobs:
3840
echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa
3941
chmod 600 ~/.ssh/id_rsa
4042
41-
- run: |
43+
- name: Publish
44+
run: |
4245
bun install
43-
./script/publish.ts
46+
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
47+
./script/publish.ts
48+
else
49+
./script/publish.ts --snapshot
50+
fi
4451
working-directory: ./packages/opencode
4552
env:
4653
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)