Skip to content

Commit a18baa6

Browse files
committed
ci: add snapshot server credentials
1 parent 0ff2740 commit a18baa6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
gpg-private-key: ${{ secrets.GPG_KEY }}
3333
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3434

35+
- name: Add snapshot server credentials
36+
run: |
37+
sed -i '/<\/servers>/i \
38+
<server>\
39+
<id>central-snapshots</id>\
40+
<username>${env.MAVEN_USERNAME}</username>\
41+
<password>${env.MAVEN_PASSWORD}</password>\
42+
</server>' ~/.m2/settings.xml
43+
3544
- name: Configure GPG
3645
run: |
3746
echo "use-agent" >> ~/.gnupg/gpg.conf

0 commit comments

Comments
 (0)