Skip to content

Commit 8183efd

Browse files
ci(deploy) Fix missing credentials
1 parent 7d71bee commit 8183efd

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/deploy-settings.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<pluginGroup>org.sonatype.plugins</pluginGroup>
88
</pluginGroups>
99
<properties>
10-
<gpg.keyname>${env.RELEASE_GPG_KEYNAME}</gpg.keyname>
11-
<gpg.passphrase>${env.RELEASE_GPG_PASSPHRASE}</gpg.passphrase>
10+
<!--gpg.keyname>${env.RELEASE_GPG_KEYNAME}</gpg.keyname>
11+
<gpg.passphrase>${env.RELEASE_GPG_PASSPHRASE}</gpg.passphrase-->
1212
<!--gpg.defaultKeyring>false</gpg.defaultKeyring-->
13-
<gpg.useagent>true</gpg.useagent>
14-
<gpg.lockMode>never</gpg.lockMode>
13+
<!--gpg.useagent>true</gpg.useagent>
14+
<gpg.lockMode>never</gpg.lockMode-->
1515
<!--gpg.homedir>/home/aurelien/.gnupg</gpg.homedir>
1616
<gpg.publicKeyring>/home/aurelien/.gnupg/pubring.gpg</gpg.publicKeyring>
1717
<gpg.secretKeyring>/home/aurelien/.gnupg/secring.gpg</gpg.secretKeyring-->

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,9 @@ jobs:
489489
key: ${{ runner.os }}-m2-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/pom.xml') }}
490490
restore-keys: ${{ runner.os }}-m2-${{ secrets.CACHE_VERSION }}
491491
- name: "Deploy on OSS"
492+
env:
493+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
494+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
492495
run:
493496
./mvnw clean install deploy
494497
--settings .github/deploy-settings.xml

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ jobs:
160160
gpg-private-key: ${{ secrets.RELEASE_GPG_PRIVATE_KEY }}
161161
passphrase: ${{ secrets.RELEASE_GPG_PASSPHRASE }}
162162
- name: "Deploy release"
163+
env:
164+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
165+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
163166
run:
164167
./mvnw -Prelease deploy
165168
--settings .github/deploy-settings.xml

0 commit comments

Comments
 (0)