Skip to content

Commit c14f60b

Browse files
committed
fix: use dotnet nuget to push packages
1 parent ed97855 commit c14f60b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ jobs:
149149
with:
150150
name: Packages
151151
path: Artifacts/Packages
152+
- name: Setup .NET SDKs
153+
uses: actions/setup-dotnet@v5
152154
- name: Publish
153155
run: |
154156
echo "Found the following packages to push:"
@@ -159,7 +161,7 @@ jobs:
159161
done
160162
for entry in Artifacts/Packages/*.nupkg
161163
do
162-
nuget push $entry -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -SkipDuplicate
164+
dotnet nuget push $entry --source https://api.nuget.org/v3/index.json --api-key "${{secrets.NUGET_API_KEY}}" --skip-duplicate
163165
done
164166
- name: Check pre-release
165167
id: check-pre-release

0 commit comments

Comments
 (0)