From 7b42c4e12c9c8d6a73dae4e6d5ae309836cd7e6e Mon Sep 17 00:00:00 2001 From: Brennan Beam <64556723+Brennan1994@users.noreply.github.com> Date: Tue, 27 Aug 2024 23:08:26 -0700 Subject: [PATCH] Works off release tag. no auto incrementing anymore --- .github/workflows/Release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 6144ebe..c9e5041 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -25,7 +25,6 @@ jobs: run: | $TAG = $env:GITHUB_REF -replace 'refs/tags/', '' $VERSION = $TAG -replace '^v', '' - $VERSION = "$VERSION.$env:GITHUB_RUN_NUMBER" echo "VERSION=$VERSION" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Build for Windows x64 @@ -58,9 +57,8 @@ jobs: - name: Create version number shell: bash run: | - BRANCH=$(echo $GITHUB_REF | sed 's/refs\/heads\///') - BRANCH=$(echo $BRANCH | sed 's/[^a-zA-Z0-9]/-/g') - VERSION="1.0.0-$BRANCH-$GITHUB_RUN_NUMBER" + TAG=${GITHUB_REF#refs/tags/} + VERSION=${TAG#v} echo "VERSION=${VERSION}" >> $GITHUB_ENV - name: Build for Linux x64