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

Commit 397fa37

Browse files
committed
settings.xml
1 parent 587a10d commit 397fa37

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ jobs:
2929
**/target/*.md5
3030
**/target/*.sha1
3131
32-
- name: 🚀 Deploy to releases
32+
- name: 🚀 Deploy to Releases
3333
uses: AButler/[email protected]
3434
with:
3535
files: 'target/*.jar'
3636
repo-token: ${{ secrets.GITHUB_TOKEN }}
3737

38-
- name: 🚀 Deploy to Maven
39-
run: mvn -B -DskipTests deploy -Dregistry=https://maven.pkg.github.com/Ktt-Development -Dtoken=${{ secrets.GITHUB_TOKEN }}
38+
- name: 🚀 Deploy to GitHub Packages
39+
run: mvn -B -DskipTests deploy -s settings.xml
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818
<tag>HEAD</tag>
1919
</scm>
2020

21-
22-
<distributionManagement>
23-
<repository>
24-
<id>github</id>
25-
<name>GitHub Ktt-Development Apache Maven Packages</name>
26-
<url>https://maven.pkg.github.com/Ktt-Development/${project.artifactId}</url>
27-
</repository>
28-
</distributionManagement>
29-
3021
<properties>
3122
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3223
</properties>

settings.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
4+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
6+
<activeProfiles>
7+
<activeProfile>github</activeProfile>
8+
</activeProfiles>
9+
10+
<profiles>
11+
<profile>
12+
<id>github</id>
13+
<repositories>
14+
<repository>
15+
<id>github</id>
16+
<name>GitHub Ktt-Development Apache Maven Packages</name>
17+
<url>https://maven.pkg.github.com/Ktt-Development/simplehttpserver</url>
18+
</repository>
19+
</repositories>
20+
</profile>
21+
</profiles>
22+
23+
<servers>
24+
<server>
25+
<id>github</id>
26+
<username>Katsute</username>
27+
<password>${env.GITHUB_TOKEN}</password>
28+
</server>
29+
</servers>
30+
31+
</settings>

0 commit comments

Comments
 (0)