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