9.2.30-1-SNAPSHOT Release Candidate 1 #301
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish snapshot package to the Maven Central Repository | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'candidate-*' | |
create: | |
branches: | |
- 'candidate-*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Maven Central Repository | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Publish package | |
if: contains(github.ref_name, '-release') == false | |
run: mvn --batch-mode deploy | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USER_NAME }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }} |