mirror of https://github.com/microsoft/autogen.git
Update dotnet-release.yml (#2488)
This commit is contained in:
parent
7cadfb0662
commit
09de3cc07d
|
@ -63,12 +63,3 @@ jobs:
|
|||
# remove AutoGen.SourceGenerator.snupkg because it's an empty package
|
||||
rm ./output/release/AutoGen.SourceGenerator.*.snupkg
|
||||
dotnet nuget push --api-key ${{ secrets.AUTOGEN_NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json ./output/release/*.nupkg --skip-duplicate
|
||||
- name: Tag commit
|
||||
run: |
|
||||
Write-Host "Tag commit"
|
||||
# version = eng/MetaInfo.props.Project.PropertyGroup.VersionPrefix
|
||||
$metaInfoContent = cat ./eng/MetaInfo.props
|
||||
$version = $metaInfoContent | Select-String -Pattern "<VersionPrefix>(.*)</VersionPrefix>" | ForEach-Object { $_.Matches.Groups[1].Value }
|
||||
git tag -a "$version" -m "AutoGen.Net release $version"
|
||||
git push origin --tags
|
||||
shell: pwsh
|
||||
|
|
Loading…
Reference in New Issue