Skip to content

Commit 6ef3c99

Browse files
committed
fix
1 parent fa24a3b commit 6ef3c99

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/publish_nuget.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,8 @@ jobs:
4848
uses: actions/setup-dotnet@v4
4949
- name: Publish NuGet package
5050
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"
5551
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
56-
dotnet nuget push $file --api-key "$password" --source "tmp-nuget" --skip-duplicate
52+
dotnet nuget push $file --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
5753
}
5854
5955
deploy-to-github-com:

0 commit comments

Comments
 (0)