Skip to content

Commit

Permalink
Release 2.3 (correction) (PR #39)
Browse files Browse the repository at this point in the history
  • Loading branch information
axlbonnet authored Mar 11, 2024
2 parents 543b309 + e00c67d commit 32b6f38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- 'README.md'
pull_request:
branches: develop
env:
env: # beware env value are of string type, not boolean. Need to use fromJSON to convert them to boolean
isProduction: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
prepareRelease: ${{ github.event_name == 'push' && github.ref_name == 'develop' && contains(github.event.head_commit.message, 'prepare release') }}

Expand All @@ -31,7 +31,7 @@ jobs:
java-version: '11'
distribution: 'temurin'
cache: maven
server-id: ${{ (env.isProduction == true && 'creatis-releases') || 'creatis-snapshots' }}
server-id: ${{ (fromJSON(env.isProduction) && 'creatis-releases') || 'creatis-snapshots' }}
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build with Maven
Expand All @@ -40,7 +40,7 @@ jobs:
env:
MAVEN_USERNAME: github
MAVEN_PASSWORD: ${{ secrets.NEXUS_PSW }}
mavenTarget: ${{ github.event_name == 'push' && env.prepareRelease == false && 'deploy' || 'verify' }}
mavenTarget: ${{ github.event_name == 'push' && ! fromJSON(env.prepareRelease) && 'deploy' || 'verify' }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
with:
Expand Down

0 comments on commit 32b6f38

Please sign in to comment.