diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 7b6514fb2..a62136b84 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -63,7 +63,7 @@ jobs: echo "STATUS=release" >> $GITHUB_ENV fi - name: Publish with Gradle - if: "${{ runner.os == 'Linux' && ((env.STATUS == 'release' && github.event_name == 'release') || (env.STATUS != 'release' && github.event_name != 'release' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/3.x'))) }}" + if: "${{ runner.os == 'Linux' && ((env.STATUS == 'release' && github.event_name == 'release') || (env.STATUS != 'release' && github.event_name != 'release' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/3.x' || startsWith(github.ref, 'ref/heads/release/'))) }}" run: ./gradlew publish gitPublishCopy closeSonatypeStagingRepository env: ORG_GRADLE_PROJECT_githubPackagesUsername: "${{ github.actor }}"