diff --git a/.github/workflows/deploy_to_central.yaml b/.github/workflows/deploy_to_central.yaml index 8f7b4d4b..a58d6e4b 100644 --- a/.github/workflows/deploy_to_central.yaml +++ b/.github/workflows/deploy_to_central.yaml @@ -11,6 +11,15 @@ jobs: cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import - name: Checkout uses: actions/checkout@v2 + - name: Set up setting.xml + uses: s4u/maven-settings-action@v3.0.0 + with: + servers: | + [{ + "id": "biscuit-auth", + "username": "${{ secrets.OSSRH_USERNAME }}", + "password": "${{ secrets.OSSRH_TOKEN }}" + }] - name: Set up Maven Central Repository uses: actions/setup-java@v2 with: @@ -21,6 +30,3 @@ jobs: server-password: MAVEN_PASSWORD - name: Publish package run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} deploy -Pdeploy - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}