From 7a495f007f5debc33a3e7844a5562015f2b079cc Mon Sep 17 00:00:00 2001 From: Sebastian Hofmann Date: Mon, 10 Oct 2022 16:18:54 +0200 Subject: [PATCH] Allow SNAPSHOT releases --- .github/workflows/maven-publish-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish-release.yml b/.github/workflows/maven-publish-release.yml index 2436b6e37..b3253d022 100644 --- a/.github/workflows/maven-publish-release.yml +++ b/.github/workflows/maven-publish-release.yml @@ -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 }}