Skip to content

Commit

Permalink
Works off release tag. no auto incrementing anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennan1994 committed Aug 28, 2024
1 parent 49454cb commit 7b42c4e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7b42c4e

Please sign in to comment.