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

Commit a2f2454

Browse files
committed
settings.xml (again)
1 parent 208ce88 commit a2f2454

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ jobs:
3636
repo-token: ${{ secrets.GITHUB_TOKEN }}
3737

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

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
<developerConnection>scm:git:[email protected]:Ktt-Development/simplehttpserver.git</developerConnection>
1818
<tag>HEAD</tag>
1919
</scm>
20-
21-
20+
2221
<distributionManagement>
2322
<repository>
2423
<id>github</id>

settings.xml

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

0 commit comments

Comments
 (0)