Skip to content

Commit

Permalink
[#346] Update mavne build actiosn
Browse files Browse the repository at this point in the history
 - remove -fn
 - add release dry run operations
  • Loading branch information
mattrpav committed Sep 8, 2023
1 parent 72ba956 commit e84c4d6
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/maven-build-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,36 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'

- name: Maven with JDK 8
run: mvn -fn -Pall -no-transfer-progress clean install
run: mvn -Pall -no-transfer-progress clean install

- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'

- name: Maven with JDK 11
run: mvn -fn -Pall -no-transfer-progress clean install
run: mvn -Pall -no-transfer-progress clean install

- name: Maven with JDK 11 - Release dry run
run: mvn -Psonatype-oss-release,release -DperformRelease -DdryRun=true -B release:clean release:prepare clean install

- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'

- name: Maven with JDK 17
run: mvn -fn -Pall -no-transfer-progress clean install
run: mvn -Pall -no-transfer-progress clean install

- name: Maven with JDK 17 - Release dry run
run: mvn -Psonatype-oss-release,release -DperformRelease -DdryRun=true -B release:clean release:prepare clean install

0 comments on commit e84c4d6

Please sign in to comment.