Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
axlbonnet authored Feb 28, 2024
1 parent 6b0fa6e commit 12be983
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12be983

Please sign in to comment.