File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,31 +5,26 @@ on: [push]
55jobs :
66 build :
77 runs-on : ubuntu-latest
8- strategy :
9- matrix :
10- java-version : [ 17 ]
11-
128 permissions :
139 contents : read
1410 packages : write
1511
1612 steps :
17- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1814 - name : Set up java
19- uses : actions/setup-java@v2
20- with :
21- distribution : ' adopt'
22- java-version : ${{ matrix.java-version }}
23-
24- - name : Cache Maven packages
25- uses : actions/cache@v4
15+ uses : actions/setup-java@v4
2616 with :
27- path : ~/.m2
28- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
29- restore-keys : ${{ runner.os }}-m2
17+ java-version : ' 17'
18+ distribution : ' temurin'
19+ cache : ' maven'
20+ server-id : central
21+ server-username : MAVEN_USERNAME # env variable for username in deploy
22+ server-password : MAVEN_CENTRAL_TOKEN # env variable for token in deploy
23+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
24+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
3025
3126 - name : Build with Maven
32- run : mvn -B package --no-transfer-progress --file pom.xml
27+ run : mvn -B -Prelease package --no-transfer-progress --file pom.xml
3328 env :
3429 TWIKEY_API_KEY : ${{ secrets.TWIKEY_API_KEY }}
3530 CT : ${{ secrets.CT }}
Original file line number Diff line number Diff line change 11# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
22# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
33
4- name : Maven Release
4+ name : Maven Deploy
55
66on :
77 release :
3232 run : mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
3333
3434 - name : Deploy with Maven
35- run : mvn -B -Prelease deploy --no-transfer-progress --file pom.xml
35+ run : mvn -B -Prelease deploy -DskipTests - -no-transfer-progress --file pom.xml
3636 env :
3737 MAVEN_USERNAME : ln4yUty5
3838 MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
Original file line number Diff line number Diff line change 8686 <plugin >
8787 <groupId >org.apache.maven.plugins</groupId >
8888 <artifactId >maven-release-plugin</artifactId >
89- <version >3.0.0-M4 </version >
89+ <version >3.1.1 </version >
9090 <configuration >
9191 <tag >v${project.version} </tag >
9292 <tagNameFormat >v@{project.version}</tagNameFormat >
9898 <version >1.6.8</version >
9999 <extensions >true</extensions >
100100 <configuration >
101- <serverId >ossrh </serverId >
101+ <serverId >central </serverId >
102102 <nexusUrl >https://s01.oss.sonatype.org/</nexusUrl >
103103 <autoReleaseAfterClose >true</autoReleaseAfterClose >
104104 </configuration >
You can’t perform that action at this time.
0 commit comments