diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0d1ca21..f1d32ae3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,10 +15,12 @@ jobs: java-version: '11' cache: 'maven' server-id: ossrh - server-username: ${{ secrets.SONATYPE_USERNAME }} - server-password: ${{ secrets.SONATYPE_PASSWORD }} + server-username: SONATYPE_USERNAME + server-password: SONATYPE_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - name: Publish run: mvn deploy env: - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} \ No newline at end of file + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} \ No newline at end of file