From 7286c5de69ffcb1b31081cc338c91cd652addd60 Mon Sep 17 00:00:00 2001 From: Niklas Widmann Date: Fri, 28 Jul 2023 23:51:12 +0200 Subject: [PATCH] upload mod jar as actions artifact --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee9fbb6..32bfee0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,8 @@ name: Build on: push: + release: + types: [created] jobs: build: @@ -20,4 +22,11 @@ jobs: - name: Build uses: gradle/gradle-build-action@v2 with: - arguments: build \ No newline at end of file + arguments: build + + - name: Upload jar to artifacts + if: ${{ github.event_name == 'release' }} + uses: actions/upload-artifact@v3 + with: + name: mod-jar + path: build/libs/*.jar \ No newline at end of file