We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa24a3b commit 6ef3c99Copy full SHA for 6ef3c99
.github/workflows/publish_nuget.yml
@@ -48,12 +48,8 @@ jobs:
48
uses: actions/setup-dotnet@v4
49
- name: Publish NuGet package
50
run: |
51
- $username = "eocron"
52
- $password = "${{ secrets.NUGET_API_KEY }}"
53
- $target = "https://api.nuget.org/v3/index.json"
54
- dotnet nuget add source --username $username --password "$password" --store-password-in-clear-text --name tmp-nuget "$target"
55
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
56
- dotnet nuget push $file --api-key "$password" --source "tmp-nuget" --skip-duplicate
+ dotnet nuget push $file --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
57
}
58
59
deploy-to-github-com:
0 commit comments