Skip to content

Commit 4fd17ad

Browse files
committed
Fix NuGet workflow to pack individual projects
1 parent fbfee1d commit 4fd17ad

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/publish-nuget.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,20 @@ jobs:
3333
- name: Build
3434
run: dotnet build Source/ModelingEvolution.Observable.sln --configuration Release --no-restore
3535

36-
- name: Pack
37-
run: dotnet pack Source/ModelingEvolution.Observable.sln --configuration Release --no-build --output ./nupkg
36+
- name: Pack Observable
37+
run: dotnet pack Source/ModelingEvolution.Observable/ModelingEvolution.Observable.csproj --configuration Release --no-build --output ./nupkg
38+
39+
- name: Pack Observable.Blazor
40+
run: dotnet pack Source/ModelingEvolution.Observable.Blazor/ModelingEvolution.Observable.Blazor.csproj --configuration Release --no-build --output ./nupkg
41+
42+
- name: List packages
43+
run: ls -la ./nupkg/
3844

3945
- name: Push to NuGet
4046
run: |
41-
dotnet nuget push ./nupkg/*.nupkg \
42-
--api-key ${{ secrets.NUGET_API_KEY }} \
43-
--source https://api.nuget.org/v3/index.json \
44-
--skip-duplicate
47+
for pkg in ./nupkg/*.nupkg; do
48+
dotnet nuget push "$pkg" \
49+
--api-key ${{ secrets.NUGET_API_KEY }} \
50+
--source https://api.nuget.org/v3/index.json \
51+
--skip-duplicate
52+
done

0 commit comments

Comments
 (0)