Skip to content

Commit d9d4b9d

Browse files
committed
Publish a single NuGet package artifact
No need to have one per operating system
1 parent 5a1c9db commit d9d4b9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ jobs:
3030
- run: dotnet pack --output . --no-build --verbosity normal
3131
id: dotnet-pack
3232
- uses: actions/upload-artifact@v2
33+
if: matrix.os == 'macos-latest'
3334
with:
34-
name: nuget-package-${{ matrix.os }}
35+
name: nuget-package
3536
path: ${{ steps.dotnet-pack.outputs.nupkg-filename }}
3637
publish:
3738
runs-on: macos-latest
@@ -47,5 +48,5 @@ jobs:
4748
tag: ${{ needs.package.outputs.version }}
4849
- uses: actions/download-artifact@v2
4950
with:
50-
name: nuget-package-macos-latest
51+
name: nuget-package
5152
- run: dotnet nuget push ${{ needs.package.outputs.nupkg-filename }} --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"

0 commit comments

Comments
 (0)