-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NUGET_AUTH_TOKEN does not work for official NuGet repository #526
Comments
Hello @na1307, Thank you for creating this issue and we will look into it :) |
Hi @na1307, The issue occurs because an API key was not correctly provided when attempting to push the package to NuGet. We were able to reproduce the issue by providing an incorrect API key. We suspect that the issue is due to one of the following reasons:
To resolve this issue, please follow these steps:
Following these steps will ensure that the correct API key is used when pushing the package in your GitHub Actions workflow. |
Hi @na1307, Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know. |
1 similar comment
Hi @na1307, Just a gentle reminder regarding this issue, If you have any updates or need further assistance, Please let us know. |
But I provided correct api key. Nonetheless, I received a 401 error. |
Hi @na1307, we have successfully pushed the package to NuGet. A screenshot is attached for your reference. Here are the steps that helped us publish the package:
Please follow the above steps to resolve your issue and let us know if you are still facing any problems. |
According to README.md: - uses: actions/setup-dotnet@v4
with:
dotnet-version: 3.1.x
- name: Publish the package to nuget.org
run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
Sorry, I found out that the way to publish packages to GPR and nuget.org is different. I followed the README.md instructions and it was published normally. |
Hi @na1307 , Since it has been successfully published, we are proceeding to close this issue. Please feel free to contact us in case of any further concerns. |
Description:
I tried publishing the package using source-url and NUGET_AUTH_TOKEN, but it failed with the error API key not found.
Task version:
v4
Platform:
Runner type:
Repro steps:
https://github.com/na1307/Bluehill.Hangul/blob/9702f8b7432c8cbf088a829cef16c661a40c4efa/.github/workflows/dotnet.yml
Expected behavior:
The package should publish normally.
Actual behavior:
The package won't be published with an error about missing an API key.
The text was updated successfully, but these errors were encountered: