diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bedb4762bdf..49b5e1cec0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,7 @@ jobs: run: | export ORG_GRADLE_PROJECT_signingKey=`echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d` ./gradlew -Dorg.gradle.internal.publish.checksums.insecure=true --parallel -Pversion=$VERSION build signMavenPublication publish - if: github.ref == 'refs/heads/master' + if: startsWith(github.ref, 'refs/tags/v') env: VERSION: ${{ steps.determine_version.outputs.version }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSWORD }}