diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aeea46b..f7b1869 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,11 +6,10 @@ name: Build and release binaries on: push: branches: [ "release" ] - tags: - - v* jobs: build-linux: + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -27,6 +26,7 @@ jobs: name: k8x-linux-x86_64 path: ./k8x-linux-x86_64 build-macos: + if: startsWith(github.ref, 'refs/tags/') runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -43,6 +43,7 @@ jobs: name: k8x-darwin-x86_64 path: ./k8x-darwin-x86_64 build-windows: + if: startsWith(github.ref, 'refs/tags/') runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -59,6 +60,7 @@ jobs: name: k8x-windows-x86_64.exe path: ./k8x-windows-x86_64.exe release: + if: startsWith(github.ref, 'refs/tags/') permissions: contents: write needs: @@ -72,6 +74,5 @@ jobs: uses: actions/download-artifact@v4 - name: Create github release uses: ncipollo/release-action@v1 - if: startsWith(github.ref, 'refs/tags/') with: artifacts: "./*/k8x-*"