diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9824e3694..4250885de 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -22,22 +22,21 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v3 - name: Set up JDK 11 - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: '11' distribution: 'temurin' cache: maven - server-id: ${{ env.isProduction && 'creatis-releases' || 'creatis-snapshots' }} - server-username: github - server-password: plop + server-id: creatis-snapshots + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD - name: Build with Maven - # deploy only on pushs and not on PRs - run: mvn --batch-mode --update-snapshots -e -X clean ${{ env.mavenTarget }} + run: mvn -B clean deploy env: MAVEN_USERNAME: github - MAVEN_PASSWORD: plop + MAVEN_PASSWORD: ${{ secrets.NEXUS_PSW }} - name: Publish Test Report uses: mikepenz/action-junit-report@v3