From a7d6aa66b3468e4975711c72f1cfdbf3055dcd20 Mon Sep 17 00:00:00 2001 From: Boris Rizov Date: Fri, 8 Mar 2024 15:12:59 +0100 Subject: [PATCH] feat: upload miw jar to gh release --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aef4a5aff..edc75dbc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,6 +115,15 @@ jobs: echo "::notice::${{ env.next_release }}" echo "::notice::${{ env.will_create_new_release }}" + - name: Upload jar to GitHub release + if: github.event_name != 'pull_request' && steps.semantic-release.outputs.will_create_new_release == 'true' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_VERSION: ${{ steps.semantic-release.outputs.next_release }} + run: | + echo "::notice::Uploading jar to GitHub release" + gh release upload "v$RELEASE_VERSION" ./build/libs/miw-latest.jar + docker: name: Docker Release needs: semantic_release