Skip to content

Commit e6d6209

Browse files
committed
Refine NuGet publish workflow to specify project paths for restore, build, and pack steps.
1 parent f9b5d82 commit e6d6209

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
dotnet-version: '9.0.x'
2525

2626
- name: Restore dependencies
27-
run: dotnet restore
27+
run: dotnet restore ./src/NullOpsDevs.Bootstrap/NullOpsDevs.Bootstrap.csproj
2828

2929
- name: Build
30-
run: dotnet build --configuration Release --no-restore /p:Version=${{ steps.get_version.outputs.VERSION }}
30+
run: dotnet build ./src/NullOpsDevs.Bootstrap/NullOpsDevs.Bootstrap.csproj --configuration Release --no-restore /p:Version=${{ steps.get_version.outputs.VERSION }}
3131

3232
- name: Pack
33-
run: dotnet pack --configuration Release --no-build --output ./artifacts /p:Version=${{ steps.get_version.outputs.VERSION }}
33+
run: dotnet pack ./src/NullOpsDevs.Bootstrap/NullOpsDevs.Bootstrap.csproj --configuration Release --no-build --output ./artifacts /p:Version=${{ steps.get_version.outputs.VERSION }}
3434

3535
- name: Push to NuGet
3636
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)