File tree Expand file tree Collapse file tree 3 files changed +14
-18
lines changed Expand file tree Collapse file tree 3 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 2222 run : gh pr merge --auto --merge "$PR_URL"
2323 env :
2424 PR_URL : ${{github.event.pull_request.html_url}}
25- GH_TOKEN : ${{secrets.GITHUB_TOKEN }}
25+ GH_TOKEN : ${{secrets.PAT_AUTO_MERGE }}
Original file line number Diff line number Diff line change 99jobs :
1010 deployment :
1111 runs-on : ubuntu-latest
12+ name : Deploy to Maven
1213 environment : Deploy
1314 steps :
1415 - name : Checkout source code
1516 uses : actions/checkout@v4
16- # Sets up Java version
17- - name : Set up Java
18- uses : actions/setup-java@v4
17+
18+ - name : Deploy version
19+ uses : secure-software-engineering/ actions/deployment/maven-deployment@maven-central-deploy
1920 with :
20- distribution : adopt
21- java-package : jdk
21+ java-distribution : adopt
2222 java-version : 11
23- server-id : ossrh # must match the serverId configured for the nexus-staging-maven-plugin
24- server-username : OSSRH_USERNAME # Env var that holds your OSSRH user name
25- server-password : OSSRH_PASSWORD # Env var that holds your OSSRH user pw
26- gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret
27- gpg-passphrase : SIGN_KEY_PASS # Env var that holds the key's passphrase
28- - name : Deploy Boomerang
29- run : mvn -B -U clean deploy -Pdeployment -DskipTests
30- env :
31- SIGN_KEY_PASS : ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
32- OSSRH_USERNAME : ${{ secrets.SONATYPE_USER }}
33- OSSRH_PASSWORD : ${{ secrets.SONATYPE_PW }}
23+ server-id : central
24+ server-username : ${{ secrets.MAVEN_USERNAME }}
25+ server-password : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
26+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
27+ gpg-passphrase : ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
28+ mvn-cli-args : ' -DskipTests -Pdeployment'
29+ deploy-mode : release
3430
3531 snapshot-version :
3632 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 363363 <version >0.8.0</version >
364364 <extensions >true</extensions >
365365 <configuration >
366+ <deploymentName >${project.artifactId} ${project.version} </deploymentName >
366367 <!-- Same id as in the deployment workflow -->
367368 <publishingServerId >central</publishingServerId >
368- <centralSnapshotsUrl >https://s01.oss.sonatype.org/content/repositories/snapshots/</centralSnapshotsUrl >
369369 <waitUntil >published</waitUntil >
370370 <autoPublish >true</autoPublish >
371371 </configuration >
You can’t perform that action at this time.
0 commit comments