Skip to content

Commit

Permalink
Reduced Github Actions build steps #5
Browse files Browse the repository at this point in the history
  • Loading branch information
roar-skinderviken committed Dec 7, 2022
1 parent 9e63285 commit 8c97b21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
distribution: 'adopt'

- name: Set version with Maven
run: mvn --batch-mode --update-snapshots versions:set -DnewVersion=${{github.ref_name}}
run: mvn --batch-mode -U versions:set -DnewVersion=${{github.ref_name}}

- name: Build with Maven
run: mvn --batch-mode --update-snapshots -P github -Drevision=${{github.ref_name}} package
run: mvn --batch-mode -P github -Drevision=${{github.ref_name}} package

- name: Release
uses: softprops/action-gh-release@v1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/run_on_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
distribution: 'adopt'

- name: Set version with Maven
run: mvn --batch-mode --update-snapshots versions:set -DnewVersion=${{github.ref_name}}
run: mvn --batch-mode -U versions:set -DnewVersion=${{github.ref_name}}

- name: Build with Maven
run: mvn --batch-mode package
run: mvn --batch-mode -P github -Drevision=${{github.ref_name}} package

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./konsoll/target/jar/kostra-kontrollprogram-${{github.ref_name}}.jar
./web/target/jar/kostra-kontrollprogram-web-${{github.ref_name}}.jar

0 comments on commit 8c97b21

Please sign in to comment.