Skip to content

Commit

Permalink
Fix workflow release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiuth committed Dec 8, 2021
1 parent 7ce3dce commit cfe12aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
- name: Create Zip
run: |
echo $Env:GITHUB_REF;
if ($Env:GITHUB_REF_TYPE -eq "tag") {
$ver = $Env:GITHUB_REF.Substring(1);
$ver = $Env:GITHUB_REF.Substring(10);
} else {
$ver = $Env:GITHUB_SHA.Substring(0, 8) + "-pre";
}
echo $ver
Rename-Item -Path ./build/Release -NewName Soggfy-$ver
7z a "-xr!*.lib" "-xr!*.exp" "-xr!*.pdb" build/Soggfy-$ver.zip ./build/Soggfy-$ver
Expand Down

0 comments on commit cfe12aa

Please sign in to comment.