diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fcc46f3..68fcbe0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,9 @@ jobs: with: distribution: 'temurin' java-version: 21 + server-id: central + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD - name: Verify with Maven if: github.event_name == 'pull_request' @@ -59,4 +62,6 @@ jobs: run: mvn -B -PsonatypeDeploy deploy -Dserver.username="${{ secrets.MAVEN_USERNAME }}" -Dserver.password="${{ secrets.MAVEN_CENTRAL_TOKEN }}" env: MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - MAVEN_GPG_KEY: ${{ secrets.GPG_SIGNING_KEY }} \ No newline at end of file + MAVEN_GPG_KEY: ${{ secrets.GPG_SIGNING_KEY }} + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN }} \ No newline at end of file diff --git a/settings.xml b/settings.xml deleted file mode 100644 index b1d0beb..0000000 --- a/settings.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - central - ${server.username} - ${server.password} - - - gpg.passphrase - ${env.MAVEN_GPG_PASSPHRASE} - - - \ No newline at end of file