File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed
Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -13,21 +13,26 @@ jobs:
1313 packages : write
1414 steps :
1515 - uses : actions/checkout@v4
16- - name : Set up Java
16+
17+ - name : Set up Java for publishing to Maven Central Repository
1718 uses : actions/setup-java@v4
1819 with :
19- java-version : ' 23 '
20+ java-version : ' 11 '
2021 distribution : ' temurin'
21-
22- - name : Build with Maven
23- run : mvn clean package
24-
25- - name : Publish to Maven CEntral
22+ server-id : ossrh
23+ server-username : MAVEN_USERNAME
24+ server-password : MAVEN_PASSWORD
25+ - name : Publish to the Maven Central Repository
2626 run : mvn --batch-mode deploy
2727 env :
2828 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
2929 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
3030
31+ - name : Set up Java for publishing to GitHub Packages
32+ uses : actions/setup-java@v4
33+ with :
34+ java-version : ' 11'
35+ distribution : ' temurin'
3136 - name : Publish to GitHub Packages
3237 run : mvn --batch-mode deploy
3338 env :
Original file line number Diff line number Diff line change 2323 <name >GitHub Packages</name >
2424 <url >https://maven.pkg.github.com/langfuse/langfuse-java</url >
2525 </repository >
26+ <repository >
27+ <id >ossrh</id >
28+ <name >Central Repository OSSRH</name >
29+ <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
30+ </repository >
2631 </distributionManagement >
2732
2833 <dependencies >
You can’t perform that action at this time.
0 commit comments