From 5ad5c21366bcb3a7ef88664808d3cdae7b2a514f Mon Sep 17 00:00:00 2001 From: Fried Hoeben Date: Sun, 1 Oct 2023 23:30:51 +0200 Subject: [PATCH] try deploy using regular maven command instead of special action --- .github/workflows/master.yml | 26 ++++++++++++++++++-------- pom.xml | 2 +- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 7a7ead0..4bdda0e 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -36,14 +36,24 @@ jobs: path: pom.xml if-no-files-found: error - - name: Release Maven package - uses: samuelmeuli/action-maven-publish@v1 - with: - maven_profiles: release - gpg_private_key: ${{ secrets.gpg_private_key }} - gpg_passphrase: ${{ secrets.gpg_passphrase }} - nexus_username: ${{ secrets.MAVEN_USERNAME }} - nexus_password: ${{ secrets.MAVEN_PASSWORD }} + - name: Set up Apache Maven Central + uses: actions/setup-java@v3 + with: # running setup-java again overwrites the settings.xml + java-version: '8' + distribution: 'zulu' + cache: 'maven' + server-id: ossrh + server-username: MAVEN_USERNAME # env variable for username in deploy + server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy + gpg-private-key: ${{ secrets.gpg_private_key }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase + + - name: Publish to Apache Maven Central + run: mvn clean deploy -P release + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }} - name: upload packages uses: actions/upload-artifact@v3 diff --git a/pom.xml b/pom.xml index 0b00a39..7ffdcb1 100644 --- a/pom.xml +++ b/pom.xml @@ -42,7 +42,7 @@ org.fitnesse fitnesse - 20221219 + 20230503 provided