From d4cbb73ee57df84188820d898b7b55fd10e5c35f Mon Sep 17 00:00:00 2001 From: Andrea Antonello Date: Tue, 20 Aug 2024 09:55:40 +0200 Subject: [PATCH] try to fix release workflow --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fda56f0f..0f5e473d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,8 +21,14 @@ jobs: java-version: '11' cache: 'maven' server-id: ossrh - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD + server-username: ${{ secrets.OSSRH_USERNAME }} + server-password: ${{ secrets.OSSRH_TOKEN }} + + - name: Run Tests + run: | + mvn --no-transfer-progress \ + --batch-mode \ + clean verify - id: install-secret-key name: Install gpg secret key @@ -33,9 +39,6 @@ jobs: gpg --list-secret-keys --keyid-format LONG - name: Build and Deploy Snapshot - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} run: | mvn --no-transfer-progress \ --batch-mode \