Skip to content

Commit 16bd5bc

Browse files
committed
Update secret names
1 parent 9a15fe7 commit 16bd5bc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Set up Apache Maven Central
3434
uses: actions/setup-java@v2
35-
with: # running setup-java again overwrites the settings.xml
35+
with:
3636
distribution: 'zulu'
3737
java-version: '11'
3838
server-id: sonatype-nexus-staging
@@ -41,6 +41,10 @@ jobs:
4141
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
4242
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4343
settings-path: ${{ github.workspace }}/generated-settings
44+
env:
45+
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USER }}
46+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
47+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4448

4549
- name: Release to Apache Maven Central
4650
run: mvn deploy -s $GITHUB_WORKSPACE/generated-settings/settings.xml

0 commit comments

Comments
 (0)