File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -124,4 +124,16 @@ jobs:
124124 - name : Install .NET SDK
125125 uses : actions/setup-dotnet@v1.7.2
126126 with :
127- dotnet-version : ${{ env.DOTNET_SDK_VERSION }}
127+ dotnet-version : ${{ env.DOTNET_SDK_VERSION }}
128+
129+ - name : Create NuGet package
130+ run : dotnet pack ./GmodNET.Serilog.Sink/GmodNET.Serilog.Sink.csproj -c Release -o nupkgs
131+
132+ - name : Upload NuGet package to Azure DevOps
133+ run : |
134+ dotnet nuget update source gmodnet-packages --username CI --password ${{ secrets.DEVOPS_PASSWORD }} --store-password-in-clear-text
135+ dotnet nuget push nupkgs/**.nupkg --source gmodnet-packages --api-key az --skip-duplicate
136+
137+ - name : Upload NuGet package to NuGet.org
138+ if : ${{ github.event_name == 'release' }}
139+ run : dotnet nuget push nupkgs/**.nupkg --source nuget --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
You can’t perform that action at this time.
0 commit comments