diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 988befa..336470c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,7 @@ name: Release on: push: - tags: - - "*" + pull_request: permissions: contents: write @@ -35,7 +34,6 @@ jobs: shell: bash env: CGO_ENABLED: 1 - PKG_CONFIG_PATH: ${{ env.PKG_CONFIG_PATH }} run: | go build \ -ldflags "-X main.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ @@ -55,6 +53,7 @@ jobs: release: needs: build + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - name: Download Artifacts