File tree Expand file tree Collapse file tree
.github/actions/publish-nuget-package Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,15 +46,17 @@ runs:
4646 name : ${{ inputs.package-artifact-name }}
4747 path : ${{ inputs.working-directory }}
4848
49- - if : ${{ inputs.nuget-feed-type == 'NuGet' }}
50- name : ' Add NuGet source '
49+ - if : ${{ inputs.nuget-feed-server == 'NuGet' }}
50+ name : ' Publish package to NuGet '
5151 shell : bash
5252 run : |
53- dotnet nuget add source ${{ inputs.nuget-feed-url }} --name nuget-feed
54- working-directory : ${{ inputs .working-directory }}
53+ dotnet nuget push **/*.nupkg -- source ${{ vars.NUGET_PACKAGE_FEED_URL }} --api-key ${{ secrets.NUGET_PACKAGE_FEED_API_KEY }}
54+ working-directory : ${{ runner.temp }}/${{ env .working-directory }}
5555
56- - name : ' Publish Nuget packages'
56+ - if : ${{ inputs.nuget-feed-server == 'AzureArtifacts' }}
57+ name : ' Publish package to Azure Artifacts'
5758 shell : bash
5859 run : |
59- dotnet nuget push **/*.nupkg --source ${{ inputs.nuget-feed-url }} --api-key ${{ inputs.nuget-feed-api-key }}
60- working-directory : ${{ inputs.working-directory }}
60+ dotnet nuget add source ${{ vars.NUGET_PACKAGE_FEED_URL }} --name nuget-feed --username username --password ${{ secrets.NUGET_PACKAGE_FEED_API_KEY }} --store-password-in-clear-text
61+ dotnet nuget push **/*.nupkg --source nuget-feed --api-key ${{ secrets.NUGET_PACKAGE_FEED_API_KEY }} --skip-duplicate
62+ working-directory : ${{ runner.temp }}/${{ env.working-directory }}
You can’t perform that action at this time.
0 commit comments