From b8e971ed4ae50f209eb2330c747b46fdda9ccae3 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 11 Aug 2022 22:37:15 +0200 Subject: [PATCH] git --- .github/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbf7ab2..076008c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,13 @@ jobs: check-latest: true cache: true - - run: make + - name: Retrieve version + run: | + echo "::set-output name=TAG_NAME::$(git describe --tags)" + id: version + + - name: build + run: make - uses: "marvinpinto/action-automatic-releases@latest" with: @@ -23,6 +29,6 @@ jobs: prerelease: true title: "Development Build" files: | - bedrocktool_${{ GITHUB_REF:10 }}.exe - bedrocktool_${{ GITHUB_REF:10 }}-linux - bedrocktool_${{ GITHUB_REF:10 }}-mac + bedrocktool_${{ steps.version.outputs.TAG_NAME }}.exe + bedrocktool_${{ steps.version.outputs.TAG_NAME }}-linux + bedrocktool_${{ steps.version.outputs.TAG_NAME }}-mac