From 2199fcf52df7d617338441e2893a8b23e3c716c2 Mon Sep 17 00:00:00 2001 From: Nicolas Laval Date: Fri, 21 Jun 2024 15:37:09 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c8506870..cda0bf566 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,25 +99,22 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Maven Central Repository - uses: actions/setup-java@v4 - with: - java-version: "17" - distribution: "temurin" - server-id: ossrh - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - gpg-passphrase: MAVEN_GPG_PASSPHRASE - uses: s4u/maven-settings-action@v3.0.0 with: githubServer: false servers: | - [{ - "id": "Github", - "username": "${{ secrets.GH_PACKAGES_USERNAME }}", - "password": "${{ secrets.GH_PACKAGES_PASSWORD }}" - }] + [ + { + "id": "Github", + "username": "${{ secrets.GH_PACKAGES_USERNAME }}", + "password": "${{ secrets.GH_PACKAGES_PASSWORD }}" + }, + { + "id": "ossrh", + "username": "${{ secrets.MAVEN_USERNAME }}", + "password": "${{ secrets.MAVEN_PASSWORD }}" + } + ] override: false - name: Publish Trevas run: mvn -B deploy -Prelease -DskipTests=true --no-transfer-progress