This repository was archived by the owner on Apr 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test & Release Snapshot to Maven Central
2
+
3
+ env :
4
+ MAVEN_ARGS : -V -ntp -e
5
+
6
+ concurrency :
7
+ group : ${{ github.ref }}-${{ github.workflow }}
8
+ cancel-in-progress : true
9
+ on :
10
+ push :
11
+ branches : [ main ]
12
+ workflow_dispatch :
13
+ jobs :
14
+ test :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ - name : Set up Java and Maven
19
+ uses : actions/setup-java@v3
20
+ with :
21
+ distribution : temurin
22
+ java-version : 11
23
+ cache : ' maven'
24
+ - name : Run unit tests
25
+ run : ./mvnw ${MAVEN_ARGS} -B test --file pom.xml
26
+ release-snapshot :
27
+ runs-on : ubuntu-latest
28
+ needs : test
29
+ steps :
30
+ - uses : actions/checkout@v3
31
+ - name : Set up Java and Maven
32
+ uses : actions/setup-java@v3
33
+ with :
34
+ distribution : temurin
35
+ java-version : 11
36
+ cache : ' maven'
37
+ - name : Release Maven package
38
+ uses : samuelmeuli/action-maven-publish@v1
39
+ with :
40
+ maven_profiles : " release"
41
+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
42
+ gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
43
+ nexus_username : ${{ secrets.OSSRH_USERNAME }}
44
+ nexus_password : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 61
61
<sonar .host.url>https://sonarcloud.io</sonar .host.url>
62
62
</properties >
63
63
64
+ <repositories >
65
+ <repository >
66
+ <id >ossrh</id >
67
+ <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
68
+ <snapshots >
69
+ <enabled >true</enabled >
70
+ <updatePolicy >always</updatePolicy >
71
+ </snapshots >
72
+ </repository >
73
+ </repositories >
74
+
75
+ <distributionManagement >
76
+ <snapshotRepository >
77
+ <id >ossrh</id >
78
+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
79
+ </snapshotRepository >
80
+ </distributionManagement >
81
+
64
82
<modules >
65
83
<module >core</module >
66
84
<module >samples</module >
You can’t perform that action at this time.
0 commit comments