File tree 2 files changed +24
-2
lines changed
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish package to the Maven Central Repository
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ publish :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ - name : Set up Maven Central Repository
11
+ uses : actions/setup-java@v3
12
+ with :
13
+ java-version : ' 8'
14
+ distribution : ' temurin'
15
+ server-id : ossrh
16
+ server-username : MAVEN_USERNAME
17
+ server-password : MAVEN_PASSWORD
18
+ - name : Publish package
19
+ run : mvn --batch-mode deploy
20
+ env :
21
+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
22
+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 28
28
<distributionManagement >
29
29
<snapshotRepository >
30
30
<id >ossrh</id >
31
- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
31
+ <url >https://s01. oss.sonatype.org/content/repositories/snapshots</url >
32
32
</snapshotRepository >
33
33
<repository >
34
34
<id >ossrh</id >
35
- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
35
+ <url >https://s01. oss.sonatype.org/service/local/staging/deploy/maven2/</url >
36
36
</repository >
37
37
</distributionManagement >
38
38
You can’t perform that action at this time.
0 commit comments