From f0dbe40522b28262549fcffd6b214b47e85603c7 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 12 Jun 2025 13:04:01 -0400 Subject: sync --- .github/workflows/publish.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 42 ------------------------------------------ 2 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/release.yml 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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 12cd3647a..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: release - -on: - workflow_dispatch: - push: - tags: - - "*" - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -permissions: - contents: write - packages: write - -jobs: - goreleaser: - 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 }} -- cgit v1.2.3