diff --git a/.github/workflows/maven-publish-github.yml b/.github/workflows/maven-publish-github.yml index e9e664b..4b4a550 100644 --- a/.github/workflows/maven-publish-github.yml +++ b/.github/workflows/maven-publish-github.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 + - name: Set up JDK uses: actions/setup-java@v4 with: distribution: 'adopt' diff --git a/.github/workflows/maven-publish-maven-central.yml b/.github/workflows/maven-publish-maven-central.yml index 1fb2e41..17c8295 100644 --- a/.github/workflows/maven-publish-maven-central.yml +++ b/.github/workflows/maven-publish-maven-central.yml @@ -15,9 +15,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build with Maven - run: mvn package -B -ntp --file pom.xml - - name: Install gpg secret key run: | cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY2 }}" | base64 --decode) | gpg --batch --import @@ -33,6 +30,9 @@ jobs: server-password: MAVEN_PASSWORD settings-path: ${{ github.workspace }} # location for the settings.xml file + - name: Build with Maven + run: mvn package -B -ntp --file pom.xml + - name: Publish to Maven Central run: mvn deploy -B -ntp -P release-to-maven-central -s $GITHUB_WORKSPACE/settings.xml -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD2 }} -DskipTests env: