Skip to content

Commit bca85d1

Browse files
authored
Update nuget-publish.yml
1 parent e544c76 commit bca85d1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/nuget-publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,5 @@ jobs:
3636
- name: Create a package
3737
run: nuget pack
3838

39-
- name: Authenticate to GitHub packages
40-
run: dotnet nuget add source --username jaccz --password ${{ secrets.NUGET_API_KEY }} --name pict "https://nuget.pkg.github.com/microsoft/index.json"
41-
42-
- name: Publish the package
43-
run: dotnet nuget push "Microsoft.Test.Pict.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source "pict" --skip-duplicate
39+
- name: Publish NuGet package
40+
run: dotnet nuget push "Microsoft.Test.Pict.*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/microsoft/index.json

0 commit comments

Comments
 (0)