diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9b30e545..e5181587 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,7 +15,7 @@ env: jobs: config: name: Check GoReleaser config - #if: github.event_name == 'pull_request' + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - name: Checkout @@ -28,8 +28,7 @@ jobs: publish: name: "Publish provider" - # if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') - if: github.event_name == 'push' + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') needs: config runs-on: ubuntu-latest permissions: