Skip to content

Commit eb21469

Browse files
committed
Don't create tag locally
1 parent 6ebaf76 commit eb21469

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tools/ReleaseTools.psm1

+1-11
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ function New-DraftRelease {
353353
$Changelog = (Get-FirstChangelog -RepositoryName $RepositoryName) -join "`n"
354354
$ReleaseParams = @{
355355
Draft = $true
356+
# NOTE: We rely on GitHub to create the tag.
356357
Tag = "v$Version"
357358
Committish = "release/v$Version"
358359
Name = "v$Version"
@@ -361,17 +362,6 @@ function New-DraftRelease {
361362
# TODO: Pass -WhatIf and -Confirm parameters correctly.
362363
}
363364

364-
if ($PSCmdlet.ShouldProcess("$RepositoryName/v$Version", "git tag")) {
365-
# NOTE: This a side effect neccesary for Git operations to work.
366-
Push-Location -Path "$PSScriptRoot/../../$RepositoryName"
367-
if (-not (git show-ref --tags "v$Version")) {
368-
git tag "v$Version"
369-
} else {
370-
Write-Warning "git tag $RepositoryName/v$Version already exists!"
371-
}
372-
Pop-Location
373-
}
374-
375365
$Repo = Get-GitHubRepository -OwnerName PowerShell -RepositoryName $RepositoryName
376366
$Release = $Repo | New-GitHubRelease @ReleaseParams
377367

0 commit comments

Comments
 (0)