Skip to content

Commit

Permalink
NuGet artifact shouldn't have dir structure
Browse files Browse the repository at this point in the history
The original retained directory structure of after src/ and user thus
needed to copy all files from multiple directories 2 level deep.

Instead, pack all generated nuget packages to a single directory and
store them all in a root of zip archive.
  • Loading branch information
jahav committed Sep 1, 2024
1 parent 0bfe2a0 commit ef3c673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
files: tests/DataIsland.Core.Tests/TestResults/**/coverage.opencover.xml

- name: Pack DataIsland.Core
run: dotnet pack --no-build --configuration Release /p:PackageVersion=1.0.0-${{ github.run_number }}-${{ github.sha }}
run: dotnet pack --no-build --configuration Release --output nuget_packages /p:PackageVersion=1.0.0-${{ github.run_number }}-${{ github.sha }}

- name: Archive Core package
uses: actions/upload-artifact@v4
with:
name: core-package
path: src/*/bin/Release/*.nupkg
path: nuget_packages/*.nupkg

- name: Publish
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit ef3c673

Please sign in to comment.