Skip to content

Commit 1fa8db7

Browse files
committed
Finish deploy job on CI
1 parent 1dd15dc commit 1fa8db7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)