Skip to content

Commit 18f20a8

Browse files
committed
fix: generate settings and supply path
...to release plugin
1 parent 4473e15 commit 18f20a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish-to-maven-central.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ jobs:
2626
with:
2727
java-version: 11
2828

29+
- name: Generate settings.xml
30+
uses: whelk-io/maven-settings-xml-action@v22
31+
with:
32+
servers: '[{ "id": "central", "username": "${{ secrets.NEXUS_USERNAME }}", "password": "${{ secrets.NEXUS_PASSWORD }}" }]'
33+
2934
- name: Release Maven package
3035
uses: WasiqB/maven-publish-action@v1
3136
with:
3237
server_id: central
38+
settings_path: ~/.m2/settings.xml
3339
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3440
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
3541
nexus_username: ${{ secrets.NEXUS_USERNAME }}

0 commit comments

Comments
 (0)