Skip to content

Commit ce6d8de

Browse files
committed
fux
1 parent 44545c1 commit ce6d8de

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/actions/publish-nuget-package/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ author: 'Pete Sramek'
33
description: 'Publishes packages in working directory to public NuGet feed'
44
inputs:
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
@@ -37,6 +40,11 @@ runs:
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

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)