Skip to content

Commit add557a

Browse files
authored
Merge pull request #321 from w-ahmad/chore/separate-nuget-push-job
chore: Use separate job for NuGet packages push step
2 parents 908e43a + 03c9f4c commit add557a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci-build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,20 @@ jobs:
5656
name: NuGet Packages
5757
path: artifacts/NuGet/Release
5858

59+
publish:
60+
needs: build
61+
runs-on: windows-2022
62+
environment: ci-nuget-publish
63+
steps:
64+
- name: Download artifacts
65+
uses: actions/download-artifact@v4
66+
with:
67+
name: NuGet Packages
68+
path: packages
69+
5970
- name: Push to NuGet
6071
run: |
61-
dotnet nuget push artifacts\NuGet\Release\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
72+
dotnet nuget push packages\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
6273
6374
- name: Comment on PR
6475
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)