Skip to content

Commit f63be98

Browse files
committed
chore: add another distribution
1 parent f9a9abf commit f63be98

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff 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:

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
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>

0 commit comments

Comments
 (0)