mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
Update publish workflow to support snapshot releases on dontlook branch
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <noreply@opencode.ai>
This commit is contained in:
parent
db88bede05
commit
52ec134b2d
1 changed files with 9 additions and 2 deletions
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue