diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6913c26..7e62a4f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,12 +18,9 @@ jobs: with: distribution: 'temurin' java-version: 23 + - name: Build with Maven run: mvn -ntp -B package - - name: Publish to GitHub Packages - run: mvn -ntp -B -DskipTests -Prelease-gh deploy - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Maven Central Repository uses: actions/setup-java@v4 @@ -35,6 +32,7 @@ jobs: server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.OSSRH_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Publish to the Maven Central Repository run: | mvn -ntp -B -DskipTests -Prelease-ossrh deploy