Skip to content

Commit c92a666

Browse files
committed
Fix nuget-publish workflow to use project files instead of .sln
1 parent 8ddb4f5 commit c92a666

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ jobs:
3737
args: convert icon.png -trim -resize 512x512 -gravity center -background transparent -extent 512x512 icon.png
3838

3939
- name: Restore dependencies
40-
run: dotnet restore SWEN3.Paperless.RabbitMq.sln
40+
run: |
41+
dotnet restore SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj
42+
dotnet restore SWEN3.Paperless.RabbitMq.Tests/SWEN3.Paperless.RabbitMq.Tests.csproj
4143
4244
- name: Build solution
43-
run: dotnet build SWEN3.Paperless.RabbitMq.sln --configuration Release --no-restore
45+
run: |
46+
dotnet build SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj --configuration Release --no-restore
47+
dotnet build SWEN3.Paperless.RabbitMq.Tests/SWEN3.Paperless.RabbitMq.Tests.csproj --configuration Release --no-restore
4448
4549
- name: Run tests
46-
run: dotnet test SWEN3.Paperless.RabbitMq.sln --configuration Release --no-build
50+
run: dotnet test SWEN3.Paperless.RabbitMq.Tests/SWEN3.Paperless.RabbitMq.Tests.csproj --configuration Release --no-build
4751

4852
- name: Pack NuGet package
4953
run: dotnet pack SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj --configuration Release --no-build --output ./nupkg -p:GeneratePackageOnBuild=false

0 commit comments

Comments
 (0)