Skip to content

Commit 41e12f7

Browse files
committed
Update Maven deploy to use OSSRH repository
Switched Maven deployment from GitHub Packages to OSSRH in both GitHub Actions workflow and pom.xml. Added snapshot repository and updated credentials handling for OSSRH deployment.
1 parent e4293d2 commit 41e12f7

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,13 @@ jobs:
7575
packages: write
7676
steps:
7777
- uses: actions/checkout@v4
78-
- uses: actions/setup-java@v3
78+
- uses: actions/setup-java@v4
7979
with:
8080
java-version: "21"
8181
distribution: "temurin"
82+
server-id: ossrh
83+
server-username: MAVEN_USERNAME
84+
server-password: MAVEN_PASSWORD
8285
cache: maven
8386
- name: Deploy JavaDoc 🚀
8487
uses: MathieuSoysal/[email protected]
@@ -98,3 +101,5 @@ jobs:
98101
env:
99102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100103
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
104+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
105+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,13 @@
322322
</repository>
323323
</repositories>
324324
<distributionManagement>
325+
<snapshotRepository>
326+
<id>ossrh</id>
327+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
328+
</snapshotRepository>
325329
<repository>
326-
<id>github</id>
327-
<name>GitHub Packages</name>
328-
<url>https://maven.pkg.github.com/openviglet/turing</url>
330+
<id>ossrh</id>
331+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
329332
</repository>
330333
</distributionManagement>
331334
</project>

0 commit comments

Comments
 (0)