diff --git a/.github/workflows/draft.yaml b/.github/workflows/draft.yaml index e46c3a5..e946830 100644 --- a/.github/workflows/draft.yaml +++ b/.github/workflows/draft.yaml @@ -44,4 +44,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | $VERSION = Get-ChildItem -Path pkg/*.nupkg -Name | Select-String -Pattern '\d+.\d+.\d+' | foreach {$_.Matches.Value} - gh release create -d --generate-notes $VERSION + gh release create -d --generate-notes v$VERSION diff --git a/version.json b/version.json index 505f3b9..305d29e 100644 --- a/version.json +++ b/version.json @@ -2,7 +2,8 @@ "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "7.1", "publicReleaseRefSpec": [ - "^refs/heads/master$" + "^refs/heads/master$", + "^refs/tags/v\\d+\\.\\d+\\.\\d+" ], "cloudBuild": { "setVersionVariables": false