Skip to content

Commit

Permalink
build: Add release/ branches to the publishing list for patch release…
Browse files Browse the repository at this point in the history
… development
  • Loading branch information
zml2008 committed May 4, 2021
1 parent 2509780 commit 81701aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 81701aa

Please sign in to comment.