diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd44fa0a70..44094cd2c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,6 +96,7 @@ jobs: - name: Gradle close staging on MavenCentral uses: eskatos/gradle-command-action@v1 + if: startsWith(github.ref, 'refs/tags/v') with: arguments: closeAndReleaseRepository -PMVN_CENTRAL_USER=${{ secrets.MVN_CENTRAL_USER }} -PMVN_CENTRAL_PASSWORD=${{ secrets.MVN_CENTRAL_PASSWORD }}