File tree Expand file tree Collapse file tree
actions/publish-nuget-package Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ author: 'Pete Sramek'
33description : ' Publishes packages in working directory to public NuGet feed'
44inputs :
55# Required
6+ artifact-name :
7+ description : ' Name of the artifact to download and publish'
8+ required : true
69 nuget-feed-url :
710 description : ' NuGet feed URL'
811 required : true
3740 - name : ' Checkout ${{ github.head_ref || github.ref }}'
3841 uses : actions/checkout@v4
3942
43+ - name : Download package artifact
44+ uses : actions/download-artifact@v5
45+ with :
46+ name : ${{ needs.pack.outputs.package-artifact-name }}
47+
4048 - if : ${{ inputs.nuget-feed-type == 'NuGet' }}
4149 name : ' Add NuGet source'
4250 shell : bash
Original file line number Diff line number Diff line change @@ -182,14 +182,10 @@ jobs:
182182 with :
183183 dotnet-version : ${{ env.dotnet-sdk-version }}
184184
185- - name : Download package artifact
186- uses : actions/download-artifact@v5
187- with :
188- name : ${{ needs.pack.outputs.package-artifact-name }}
189-
190185 - name : ' Publish package to Azure Artifact feed'
191186 uses : ./.github/actions/publish-nuget-package
192187 with :
188+ artifact-name : ${{ needs.pack.outputs.package-artifact-name }}
193189 nuget-feed-url : ${{ secrets.NUGET_FEED_URL }}
194190 nuget-feed-api-key : ${{ secrets.NUGET_FEED_API_KEY }}
195191 nuget-feed-server : ' AzureArtifacts'
You can’t perform that action at this time.
0 commit comments