From 493b5f9be5618b9fbba5ee5c98fe5c1c11d05b93 Mon Sep 17 00:00:00 2001 From: soloturn Date: Tue, 27 Oct 2020 05:21:12 +0100 Subject: [PATCH] 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. --- .github/workflows/maven.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index bff98872..35473f78 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,9 +10,12 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] 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 java: 1.14 + - os: ubuntu-latest + java: 1.8 + upload: true steps: - uses: actions/checkout@v1 @@ -21,4 +24,12 @@ jobs: with: java-version: ${{ matrix.java }} - 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: