From c44dc4827d1a794f6680ce5ca72a4577dd809501 Mon Sep 17 00:00:00 2001 From: Weslie <7493154+WeslieDE@users.noreply.github.com> Date: Thu, 19 Sep 2024 20:07:04 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b01da52..fa2d9c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,11 @@ # certain platforms or Java versions, and provides a first line of defence # against bad commits. +permissions: + contents: write + packages: write + + name: build on: [pull_request, push] @@ -34,4 +39,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: Artifacts - path: build/libs/ \ No newline at end of file + path: build/libs/ + - name: Upload Build to Release + uses: softprops/action-gh-release@v2 + with: + files: build/libs/*.jar + tag_name: v${{ github.sha }}