Skip to content

Commit b1cb48e

Browse files
committed
Configure GitHub Packages publishing
1 parent dbf5fa4 commit b1cb48e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<servers>
77
<server>
88
<id>github</id>
9-
<username>${env.GITHUB_ACTOR}</username>
10-
<password>${env.GITHUB_TOKEN}</password>
9+
<username>${env.MAVEN_USERNAME}</username>
10+
<password>${env.MAVEN_PASSWORD}</password>
1111
</server>
1212
</servers>
1313
</settings>

.github/workflows/maven.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ jobs:
2626
run: mvn deploy -Dmaven.javadoc.skip=true -s .github/settings.xml
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
GITHUB_ACTOR: ${{ github.actor }}
29+
GITHUB_ACTOR: ${{ github.actor }}
30+
MAVEN_USERNAME: ${{ github.actor }}
31+
MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)