From 516cf65916bf6fa2bac3f4d25d8e097e7ac47a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20Kr=C3=BCger?= Date: Tue, 27 Aug 2024 15:29:53 +1000 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e754165..34512bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,18 +10,18 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '17' + java-version: '21' server-id: central - server-username: ${{ secrets.CENTRAL_USERNAME }} - server-password: ${{ secrets.CENTRAL_PASSWORD }} + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Update version in pom.xml run: | @@ -29,4 +29,8 @@ jobs: mvn versions:set -DnewVersion=${RELEASE_VERSION} -DgenerateBackupPoms=false - name: Build and publish to Maven Central - run: mvn clean deploy -P release -Dquarkus.profile=chappie -DskipTests -Dgpg.skip=false -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} + run: mvn clean deploy -P release -Dquarkus.profile=chappie -DskipTests + env: + MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}