diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 9d2fc4a..9d3d887 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -22,12 +22,13 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v6 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 0 + ref: main - name: Set up JDK 17 - uses: actions/setup-java@v5 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' @@ -39,6 +40,7 @@ jobs: run: | git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.name "github-actions[bot]" + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git - name: Install SSH Key uses: shimataro/ssh-key-action@v2 @@ -58,7 +60,8 @@ jobs: run: | mvn -B release:prepare release:perform \ -DreleaseVersion=${{ github.event.inputs.releaseVersion }} \ - -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} + -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} \ + -DscmCommentPrefix="[release] " - name: Upload to SourceForge run: | diff --git a/pom.xml b/pom.xml index 0f8ab3b..fb3512b 100644 --- a/pom.xml +++ b/pom.xml @@ -135,6 +135,15 @@ + + org.apache.maven.plugins + maven-release-plugin + 3.1.1 + + v@{project.version} + true + +