File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 29
29
run : mvn -B package --file pom.xml
30
30
31
31
- name : Publish to GitHub Packages Apache Maven
32
- run : mvn deploy
32
+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
33
33
env :
34
34
GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change
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 >central</id >
16
+ <url >https://repo1.maven.org/maven2</url >
17
+ </repository >
18
+ <repository >
19
+ <id >github</id >
20
+ <url >https://maven.pkg.github.com/Koppeltaal/*</url >
21
+ <snapshots >
22
+ <enabled >true</enabled >
23
+ </snapshots >
24
+ </repository >
25
+ </repositories >
26
+ </profile >
27
+ </profiles >
28
+
29
+ <servers >
30
+ <server >
31
+ <id >github</id >
32
+ <username >${env.SETTINGS_XML_USERNAME}</username >
33
+ <password >${env.SETTINGS_XML_PASSWORD}</password >
34
+ </server >
35
+ </servers >
36
+ </settings >
You can’t perform that action at this time.
0 commit comments