Skip to content

Commit

Permalink
Create versioned ZIP of app image
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-allan committed Jan 5, 2023
1 parent 498faef commit 1b854df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
name: Run jpackage with Gradle (application image only)
uses: gradle/gradle-build-action@v2
with:
arguments: jpackageImage
arguments: jpackageImageZip
- if: ${{ matrix.os == 'macos-latest' }}
name: Upload Mac pkg
uses: actions/upload-artifact@v2
with:
name: macos-package
path: ./build/jpackage/*.app
path: ./build/distributions/*.zip
if-no-files-found: error
retention-days: 3
- if: ${{ matrix.os == 'windows-latest' }}
Expand All @@ -84,6 +84,6 @@ jobs:
with:
files: |
windows-package/*.msi
macos-package/*.app
macos-package/*.zip
draft: true
fail_on_unmatched_files: true
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,9 @@ runtime {
imageOptions += ['--java-options', '-Djava.library.path=../lib']
}
}

tasks.register('jpackageImageZip', Zip) {
dependsOn jpackageImage
from layout.buildDirectory.dir("jpackage")
}
}

0 comments on commit 1b854df

Please sign in to comment.