|
@@ -3,6 +3,8 @@ name: publish
|
|
|
on:
|
|
on:
|
|
|
workflow_dispatch:
|
|
workflow_dispatch:
|
|
|
push:
|
|
push:
|
|
|
|
|
+ branches:
|
|
|
|
|
+ - dontlook
|
|
|
tags:
|
|
tags:
|
|
|
- "*"
|
|
- "*"
|
|
|
|
|
|
|
@@ -38,9 +40,14 @@ jobs:
|
|
|
echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa
|
|
echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa
|
|
|
chmod 600 ~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
|
|
|
|
|
|
- - run: |
|
|
|
|
|
|
|
+ - name: Publish
|
|
|
|
|
+ run: |
|
|
|
bun install
|
|
bun install
|
|
|
- ./script/publish.ts
|
|
|
|
|
|
|
+ if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
|
|
|
|
+ ./script/publish.ts
|
|
|
|
|
+ else
|
|
|
|
|
+ ./script/publish.ts --snapshot
|
|
|
|
|
+ fi
|
|
|
working-directory: ./packages/opencode
|
|
working-directory: ./packages/opencode
|
|
|
env:
|
|
env:
|
|
|
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
|