Skip to content
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

Support registration manual NuGet source to NuGet.Config #415

Open
134130 opened this issue Apr 28, 2023 · 1 comment
Open

Support registration manual NuGet source to NuGet.Config #415

134130 opened this issue Apr 28, 2023 · 1 comment
Labels
feature request New feature or request to improve the current logic needs eyes

Comments

@134130
Copy link

134130 commented Apr 28, 2023

Description:
Support registration manual NuGet source to NuGet.Config

Justification:
When we uses private NuGet repository like nexus, We need to configure our source to NuGet.Config.

I'm currently using with these code, But It is too long and scattered in many workflows.

- name: Add NuGet source (Private Nexus)
  id: add-nuget-source
  run: |
    dotnet nuget remove source Nexus | true
    dotnet nuget add source ${{ secrets.PRIVATE_NUGET_SOURCE }} \
      --name Nexus \
      --username ${{ secrets.PRIVATE_AGENT_NEXUS_USERNAME }} \
      --password ${{ secrets.PRIVATE_AGENT_NEXUS_PASSWORD }} \
      --store-password-in-clear-text

Also, we need to remove this configure with these code when using ghcr.

- name: Remove NuGet source (Private Nexus)
  if: ${{ always() && steps.add-nuget-source.conclusion == 'success' }}
  run: dotnet nuget remove source Nexus | true

Are you willing to submit a PR?
Yes, I'm interested in. But I need a help.
I don't know nice way to resolve these many arguments. Some idea please

@134130 134130 added feature request New feature or request to improve the current logic needs triage labels Apr 28, 2023
@IvanZosimov
Copy link
Contributor

Hi, @134130, thank you for the feature request! We will investigate the issue and get back to you with updates!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic needs eyes
Projects
None yet
Development

No branches or pull requests

2 participants