Skip to content

Commit 41d0a12

Browse files
committed
nuget push
1 parent 07b0de9 commit 41d0a12

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/dotnet.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
name: ${{ env.PACKAGES_DIR }}
122122
path: ${{ env.PACKAGES_DIR }}
123123

124-
test:
124+
test-push:
125125
runs-on: ${{ matrix.os }}
126126
needs: pack
127127

@@ -152,9 +152,14 @@ jobs:
152152
with:
153153
dotnet-version: 6.0.X
154154

155-
- name: Run
155+
- name: Test
156156
run: |
157157
cd tests/nuget_package
158158
dotnet add nuget_package.csproj package ${{ env.NUGET_NAME }} --version ${{ needs.pack.outputs.NUGET_VERSION }}
159159
160160
dotnet run
161+
162+
- name: NuGet Push
163+
run: |
164+
cd ${{ env.PACKAGES_DIR }}
165+
dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)