diff options
| author | Dax Raad <[email protected]> | 2025-06-12 13:04:01 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-12 13:04:01 -0400 |
| commit | f0dbe40522b28262549fcffd6b214b47e85603c7 (patch) | |
| tree | 8151d61cb6833b0870ac74e5c8c7f50c91fb2d61 /.github/workflows/publish.yml | |
| parent | 41c54f629ccbc7399a70cc0b436630330577b3f6 (diff) | |
| download | opencode-f0dbe40522b28262549fcffd6b214b47e85603c7.tar.gz opencode-f0dbe40522b28262549fcffd6b214b47e85603c7.zip | |
sync
Diffstat (limited to '.github/workflows/publish.yml')
| -rw-r--r-- | .github/workflows/publish.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..c5c8b4a88 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,42 @@ +name: publish + +on: + workflow_dispatch: + push: + tags: + - "*" + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +permissions: + contents: write + packages: write + +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: oven-sh/setup-bun@v2 + with: + bun-version: 1.2.16 + + - run: | + bun install + ./script/publish.ts + working-directory: ./packages/opencode + env: + GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} + AUR_KEY: ${{ secrets.AUR_KEY }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
