From 1f5f8110714ef26dce52e77a622f9f96006fced9 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 9 Oct 2020 13:13:51 +0200 Subject: [PATCH] Fix tag (#21) * Fix invalid tag being used for release * Fix version tag --- .github/bin/publish-release | 6 ++++-- .github/workflows/build.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/bin/publish-release b/.github/bin/publish-release index 808c8652..9c8c9c9a 100755 --- a/.github/bin/publish-release +++ b/.github/bin/publish-release @@ -1,4 +1,6 @@ #!/usr/bin/env sh -gh release create $TAG -gh release upload $TAG $ARTIFACT_FILE +VERSION=$(echo $REF | cut -d "/" -f3) + +gh release create $VERSION +gh release upload $VERSION $ARTIFACT_FILE diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ff7450b..212df3de 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,4 +58,4 @@ jobs: run: ./.github/bin/publish-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAG: ${{ github.ref }} + REF: ${{ github.ref }}