From 11eea4058cbcd10b7c5ed60a0d36eecb6375f979 Mon Sep 17 00:00:00 2001 From: Meron Brouwer Date: Mon, 16 Dec 2024 15:00:17 +0100 Subject: [PATCH] [release] wip on release code --- .github/workflows/release.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ff749d11..5c1094895 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,25 +42,29 @@ jobs: with: gpg_private_key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} - - name: Build Project for release - run: xvfb-run mvn package -P release -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -Dgpg.executable=gpg - - - name: Set up Apache Maven Central - uses: actions/setup-java@v4.5.0 - with: - distribution: 'zulu' - java-version: 21 - server-id: ossrh - server-username: MAVEN_CENTRAL_USERNAME - server-password: MAVEN_CENTRAL_PASSWORD - - - name: Deploy to the Maven Central Repository - run: mvn deploy -P release -DskipTests -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -Dgpg.executable=gpg + - name: Build Project for release & Deploy + run: xvfb-run mvn package deploy -P release -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -Dgpg.executable=gpg env: MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} MAVEN_OPTS: "--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED" +# - name: Set up Apache Maven Central +# uses: actions/setup-java@v4.5.0 +# with: +# distribution: 'zulu' +# java-version: 21 +# server-id: ossrh +# server-username: MAVEN_CENTRAL_USERNAME +# server-password: MAVEN_CENTRAL_PASSWORD +# +# - name: Deploy to the Maven Central Repository +# run: mvn deploy -P release -DskipTests -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -Dgpg.executable=gpg +# env: +# MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} +# MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} +# MAVEN_OPTS: "--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED" + - name: Create GitHub Release uses: ncipollo/release-action@v1 with: