mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 19:24:22 +01:00
36 lines
681 B
YAML
36 lines
681 B
YAML
name: snapshot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- opentui
|
|
- v0
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- run: git fetch --force --tags
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ">=1.24.0"
|
|
cache: true
|
|
cache-dependency-path: go.sum
|
|
|
|
- uses: ./.github/actions/setup-bun
|
|
|
|
- name: Publish
|
|
run: |
|
|
./script/publish.ts
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
|
|
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
|