diff --git a/.github/actions/maven-release/action.yml b/.github/actions/maven-release/action.yml index 1674c219..e6200c49 100644 --- a/.github/actions/maven-release/action.yml +++ b/.github/actions/maven-release/action.yml @@ -35,13 +35,9 @@ runs: exit "$code" fi fi - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Wait for Sonatype artifact - shell: bash + shell: bash run: | echo "Waiting for $ARTIFACT $RELEASE to be released." diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b798510c..4b360983 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,6 +55,10 @@ jobs: - name: Release Java modules uses: ./.github/actions/maven-release + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Set the next dev version and commit the change run: |