Use common fat-build workflow.

This commit is contained in:
Kavin 2023-08-14 11:26:52 +01:00
parent 261fba8238
commit 2864af856b
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F
3 changed files with 38 additions and 18 deletions

24
.github/workflows/fat-build.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Fat JAR Build
on:
workflow_call:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: "gradle"
- name: Run Build
run: ./gradlew shadowJar
- run: mv build/libs/piped-*-all.jar piped.jar
- uses: actions/upload-artifact@v3
with:
name: piped.jar
path: piped.jar