File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -166,15 +166,18 @@ jobs:
166166 uses : actions/setup-dotnet@v4
167167 with :
168168 dotnet-version : 9.0.x
169- - name : Publish NuGet package
169+
170+ - name : Publish NuGet package to NuGet.org
170171 run : |
171172 foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
172173 dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
173174 }
174175
175- - name : Create GitHub Release
176- uses : softprops/action-gh-release@v2
177- with :
178- files : ${{ env.NuGetDirectory }}/*.nupkg
179- generate_release_notes : true
180- make_latest : true
176+ - name : Publish to GitHub Packages
177+ run : |
178+ foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
179+ Write-Host "Publishing $($file.Name) to GitHub Packages..."
180+ dotnet nuget push $file --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate
181+ }
182+ env :
183+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments