File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
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@v4
12
+ with :
13
+ java-version : ' 11'
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 -Pmaven-central
20
+ env :
21
+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
22
+ MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 296
296
<distributionManagement >
297
297
<repository >
298
298
<id >dcache.org</id >
299
+ <name >dCache.ORG Maven Repository</name >
299
300
<url >https://download.dcache.org/nexus/content/repositories/releases</url >
300
301
</repository >
301
302
<snapshotRepository >
335
336
</plugins >
336
337
</build >
337
338
</profile >
339
+ <profile >
340
+ <id >maven-central</id >
341
+ <distributionManagement >
342
+ <repository >
343
+ <id >ossrh</id >
344
+ <name >Central Repository OSSRH</name >
345
+ <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
346
+ </repository >
347
+ </distributionManagement >
348
+ </profile >
338
349
</profiles >
339
350
340
351
</project >
You can’t perform that action at this time.
0 commit comments