mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-26 07:14:38 +02:00
upload resulting jar as actions asset, in case of commit to main
extend matrix build to produce a fat jar so an executable jar is uploaded. unfortunately it zips the files. addresses #1766, #1820.
This commit is contained in:
15
.github/workflows/maven.yml
vendored
15
.github/workflows/maven.yml
vendored
@@ -10,9 +10,12 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
java: [1.8]
|
java: [1.8]
|
||||||
include: # test newest java on one os only
|
include: # test newest java on one os only, upload from ubuntu java8
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
java: 1.14
|
java: 1.14
|
||||||
|
- os: ubuntu-latest
|
||||||
|
java: 1.8
|
||||||
|
upload: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
@@ -21,4 +24,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package assembly:single --file pom.xml
|
||||||
|
- name: upload jar as asset
|
||||||
|
if: matrix.upload && github.ref == 'main'
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: zipped-ripme-jar
|
||||||
|
path: target/*dependencies.jar
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
||||||
|
Reference in New Issue
Block a user