Skip to content

Commit 7a21702

Browse files
committed
chore(ci): update creds and pipeline to push package to github
1 parent 6f46b84 commit 7a21702

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ jobs:
4848
run: mvn -B --no-transfer-progress help:evaluate -Dexpression=project.version -q -DforceStdout
4949

5050
- name: Build and Publish Package
51-
run: mvn -B --no-transfer-progress deploy
51+
run: mvn -B --no-transfer-progress -s src/main/resources/settings.xml deploy
5252
env:
5353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/main/resources/settings.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
https://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
<servers>
6+
<server>
7+
<id>github-common</id>
8+
<username>${env.GITHUB_USER}</username>
9+
<password>${env.GITHUB_TOKEN}</password>
10+
</server>
11+
</servers>
12+
</settings>

0 commit comments

Comments
 (0)