From f3c8cb463020307281ee0320608a821638bfed5a Mon Sep 17 00:00:00 2001
From: AndreasBrostrom <andreas.brostrom.ce@gmail.com>
Date: Sat, 16 Sep 2023 18:27:29 +0200
Subject: [PATCH] Update deploy

---
 .github/workflows/build.yml | 4 ++--
 tools/deploy.sh             | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5ece45f7..b6995e19 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -10,11 +10,11 @@ jobs:
       - name: Setup HEMTT
         uses: arma-actions/hemtt@v1
       - name: Run HEMTT build
-        run: ./tools/deploy.sh
+        run: ./tools/deploy.sh ${{ github.ref_name }}
       - name: Upload release
         uses: svenstaro/upload-release-action@v2
         with:
           repo_token: ${{ secrets.GITHUB_TOKEN }}
-          tag: ${{ github.ref }}
+          tag: ${{ github.ref_name }}
           file: release/*.zip
           overwrite: true
diff --git a/tools/deploy.sh b/tools/deploy.sh
index deb3164d..d52a0ed7 100755
--- a/tools/deploy.sh
+++ b/tools/deploy.sh
@@ -4,7 +4,7 @@ SCRIPTPATH=`dirname $(readlink -f $0)`
 cd $SCRIPTPATH
 
 # Set version
-tagVersion=$(git describe --tags --abbrev=0)
+tagVersion=$*
 echo "Build version $tagVersion"
 
 versionMajor=$(echo "$tagVersion" | cut -d. -f1)