diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d377f05..48e22e0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -30,14 +30,16 @@ jobs: run: mvn -B test --file pom.xml - name: Submit code coverage - run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_SECRET }} + run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_SECRET }} + + - name: echo + run: echo $OSSRH_USERNAME; echo $OSSRH_PASSWORD; echo $OSSRH_TOKEN_USERNAME; echo $OSSRH_TOKEN_PASSWORD; - name: Publish to Apache Maven Central #if: ${{ startsWith(github.ref, 'refs/tags/v') }} - run: cat ~/.m2/settings.xml && mvn -DskipTests deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} + run: cat ~/.m2/settings.xml && mvn --encrypt-password -DskipTests deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} env: - #OSSRH_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }} - #OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }} - OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN_PASSWORD }} + OSSRH_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}