Skip to content

Commit

Permalink
Allow SNAPSHOT releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhofmann committed Oct 10, 2022
1 parent c88c8de commit 7a495f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/maven-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ jobs:
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Change Versions
run: mvn versions:set -DnewVersion=${{ github.ref_name }}-SNAPSHOT
- name: Publish to OSSRH with Apache Maven
run: mvn release:perform
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 comments on commit 7a495f0

Please sign in to comment.