Skip to content

Commit 6296a2e

Browse files
authored
Added signing of tags (#73)
1 parent 8f69acd commit 6296a2e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

OneFlow/Publish-Release.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ if($PSCmdlet.ShouldProcess($officialReleaseBranch, "git switch -C $releaseBranch
4848
Invoke-External git switch '-C' $releaseBranch $officialReleaseBranch
4949
}
5050

51-
if($PSCmdlet.ShouldProcess($tagName, "create annotated tag"))
51+
if($PSCmdlet.ShouldProcess($tagName, "create signed tag"))
5252
{
53-
Write-Information 'Creating an annotated tag of this branch as the release'
54-
Invoke-External git tag $tagName '-m' "Official release: $tagName"
53+
Write-Information 'Creating a signed tag of this branch as the release'
54+
Invoke-External git tag -s $tagName '-m' "Official release: $tagName"
55+
56+
Write-Information 'Verifying signature on tag'
57+
Invoke-External git tag -v $tagName
5558
}
5659

5760
if($PSCmdlet.ShouldProcess($tagName, "git push $officialRemoteName tag"))

0 commit comments

Comments
 (0)