Update pre-release.yaml

This commit is contained in:
Chris Titus 2024-07-17 00:43:58 -05:00
parent 0a472c06c4
commit bce4868896

View File

@ -23,8 +23,18 @@ jobs:
run: |
$version = (Get-Date -Format "yy-MM-dd")
echo "version=$version" >> $env:GITHUB_ENV
git tag $version
git push origin $version
shell: pwsh
- name: Create Tag
id: create_tag
run: |
$tagExists = git tag -l $env:VERSION
if ($tagExists) {
Write-Host "Tag $env:VERSION already exists, skipping tag creation"
} else {
git tag $env:VERSION
git push origin $env:VERSION
}
shell: pwsh
- name: Create and Upload Release