From 81701aaf2d72d830c40d5bcb6b9b0ba39e78bbb5 Mon Sep 17 00:00:00 2001 From: zml Date: Mon, 3 May 2021 22:21:20 -0700 Subject: [PATCH] build: Add release/ branches to the publishing list for patch release development --- .github/workflows/test-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}"