From dc20bd5031cf87a1dbe43b306838add3d7ea5961 Mon Sep 17 00:00:00 2001 From: Tim Tattersall Date: Fri, 24 Oct 2025 00:52:09 +1100 Subject: [PATCH] fix: ok so multiple workflows didn't work here --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/release.yml | 33 --------------------------------- 2 files changed, 9 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a76ba7..a1e24ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,3 +53,12 @@ jobs: fi env: GITHUB_TOKEN: ${{ github.token }} + + - name: create release + uses: goreleaser/goreleaser-action@v6 + if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' + with: + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 7c2cb3a..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Release -on: - push: - tags: - - 'v*' - -permissions: - contents: write - packages: write - - -jobs: - release: - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - - uses: actions/setup-go@v4 - with: - go-version: 1.25 - cache: true - - - name: create release - uses: goreleaser/goreleaser-action@v6 - if: success() && startsWith(github.ref, 'refs/tags/') - with: - version: latest - args: release --clean - env: - GITHUB_TOKEN: ${{ github.token }}