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)