Skip to content

Commit 1241543

Browse files
Add settings for ossrh (#417)
1 parent 532a92c commit 1241543

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
gpg-private-key: ${{ secrets.GPG_KEY }}
3434
gpg-passphrase: GPG_KEY_PASSPHRASE
3535
- name: Deploy on Maven Central
36-
run: ./mvnw -B --file pom.xml deploy -Prelease
36+
run: ./mvnw -B --file pom.xml deploy -Prelease --settings settings.xml
3737
env:
3838
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
3939
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

settings.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
2+
<servers>
3+
<server>
4+
<id>ossrh</id>
5+
<username>${env.MAVEN_USERNAME}</username>
6+
<password>${env.MAVEN_PASSWORD}</password>
7+
</server>
8+
</servers>
9+
</settings>

0 commit comments

Comments
 (0)