Skip to content

Commit

Permalink
fix(actions): correct publish workflow for NuGet package
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering87 authored Nov 18, 2024
1 parent 1eefc67 commit 23ed202
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ jobs:
- name: Build PDNDClientAssertionGenerator
run: dotnet build src/PDNDClientAssertionGenerator/PDNDClientAssertionGenerator.csproj --no-restore --configuration Release

- name: Ensure output directory exists
run: mkdir -p ./output

- name: Pack the NuGet package
run: dotnet pack src/PDNDClientAssertionGenerator/PDNDClientAssertionGenerator.csproj --configuration Release --no-build --output ./output

- name: Debug output directory
run: ls -la ./output

- name: Publish to NuGet
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
Expand Down

0 comments on commit 23ed202

Please sign in to comment.