Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 80f9dc7

Browse files
committed
Deploy to maven
1 parent 5bdffe8 commit 80f9dc7

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
version: '11'
1717
architecture: x64
1818

19-
- name: 🚀 Deploy to GitHub Packages
20-
run: mvn -B -s settings.xml -f pom.xml deploy
19+
- name: 🚀 Deploy to Maven Central
20+
run: mvn -B deploy
2121
env:
22-
GITHUB_USERNAME: Katsute
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
23+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
2424

2525
- name: 🚀 Deploy to Releases
2626
uses: AButler/[email protected]

pom.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.kttdevelopment</groupId>
88
<artifactId>simplehttpserver</artifactId>
9-
<version>03.06.04</version>
9+
<version>03.06.05</version>
1010

1111
<url>https://github.com/Ktt-Development/simplehttpserver</url>
1212

@@ -16,12 +16,15 @@
1616
<developerConnection>scm:git:[email protected]:Ktt-Development/simplehttpserver.git</developerConnection>
1717
<tag>HEAD</tag>
1818
</scm>
19-
19+
2020
<distributionManagement>
21+
<snapshotRepository>
22+
<id>ossrh</id>
23+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
24+
</snapshotRepository>
2125
<repository>
22-
<id>github</id>
23-
<name>GitHub Apache Maven Packages</name>
24-
<url>https://maven.pkg.github.com/Ktt-Development/${project.artifactId}</url>
26+
<id>ossrh</id>
27+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
2528
</repository>
2629
</distributionManagement>
2730

settings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
<servers>
77
<server>
8-
<id>github</id>
9-
<username>${env.GITHUB_USERNAME}</username>
10-
<password>${env.GITHUB_TOKEN}</password>
8+
<id>ossrh</id>
9+
<username>${env.MAVEN_USERNAME}</username>
10+
<password>${env.MAVEN_PASSWORD}</password>
1111
</server>
1212
</servers>
1313

0 commit comments

Comments
 (0)