add v to tag (#796)

This commit is contained in:
Boshi Lian
2022-03-20 11:03:08 -07:00
committed by GitHub
parent f69bf83b19
commit 6f4c47963a
2 changed files with 3 additions and 2 deletions

View File

@@ -44,4 +44,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
$VERSION = Get-ChildItem -Path pkg/*.nupkg -Name | Select-String -Pattern '\d+.\d+.\d+' | foreach {$_.Matches.Value} $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

View File

@@ -2,7 +2,8 @@
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "7.1", "version": "7.1",
"publicReleaseRefSpec": [ "publicReleaseRefSpec": [
"^refs/heads/master$" "^refs/heads/master$",
"^refs/tags/v\\d+\\.\\d+\\.\\d+"
], ],
"cloudBuild": { "cloudBuild": {
"setVersionVariables": false "setVersionVariables": false