Skip to content

Commit

Permalink
Added shadowJar target to GA-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
roar-skinderviken committed Apr 7, 2024
1 parent eefebd1 commit c9feec6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/on_pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}"

- name: Build with Gradle
run: ./gradlew build -Pversion=${{github.ref_name}}
run: ./gradlew -Pversion=${{github.ref_name}} build shadowJar
env:
GRADLE_OPTS: -Dorg.gradle.logging.level=info

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
./konsoll/build/libs/kostra-kontrollprogram-${{github.ref_name}}.jar
./web/build/libs/kostra-kontrollprogram-web-${{github.ref_name}}.jar
./konsoll/build/libs/kostra-kontrollprogram-${{github.ref_name}}-all.jar
./web/build/libs/kostra-kontrollprogram-web-${{github.ref_name}}-all.jar
6 changes: 3 additions & 3 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}"

- name: Build with Gradle
run: ./gradlew build -Pversion=${{github.ref_name}}
run: ./gradlew -Pversion=${{github.ref_name}} build shadowJar
env:
GRADLE_OPTS: -Dorg.gradle.logging.level=info

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

0 comments on commit c9feec6

Please sign in to comment.