diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 01e45b8c..6d475ead 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,12 +10,12 @@ 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 file_glob: 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)