Update dotnet-release.yml (#2488)

This commit is contained in:
Xiaoyun Zhang 2024-04-23 11:37:08 -07:00 committed by GitHub
parent 7cadfb0662
commit 09de3cc07d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 9 deletions

View File

@ -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