File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ jobs:
127127 with :
128128 dotnet-version : ' 9.0.x'
129129
130- - name : Push to NuGet.org
131- run : dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api. nuget.org/v3 /index.json --skip-duplicate
130+ - name : Push to GitHub Packages
131+ run : dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }} /index.json --skip-duplicate
132132
133133 - name : Create GitHub Release
134134 uses : softprops/action-gh-release@v1
@@ -138,16 +138,22 @@ jobs:
138138 ./artifacts/*.snupkg
139139 generate_release_notes : true
140140 body : |
141- ## 📦 NuGet Packages
141+ ## 📦 NuGet Packages (GitHub Packages)
142+
143+ ### Setup (one-time)
144+ Add the GitHub Packages source to your NuGet config:
145+ ```bash
146+ dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username YOUR_GITHUB_USERNAME --password YOUR_GITHUB_PAT
147+ ```
142148
143149 ### Octopus.Blazor
144- [NuGet.org ](https://www.nuget.org/packages/Octopus.Blazor/ ${{ steps.get_version.outputs.version }})
150+ [GitHub Packages ](https://github.com/ ${{ github.repository }}/pkgs/nuget/Octopus.Blazor )
145151 ```bash
146152 dotnet add package Octopus.Blazor --version ${{ steps.get_version.outputs.version }}
147153 ```
148154
149155 ### Octopus.Api.Client
150- [NuGet.org ](https://www.nuget.org/packages/Octopus.Api.Client/ ${{ steps.get_version.outputs.version }})
156+ [GitHub Packages ](https://github.com/ ${{ github.repository }}/pkgs/nuget/Octopus.Api.Client )
151157 ```bash
152158 dotnet add package Octopus.Api.Client --version ${{ steps.get_version.outputs.version }}
153159 ```
You can’t perform that action at this time.
0 commit comments