Skip to content

Commit ec2d90a

Browse files
authored
#5 add debug to github action (#6)
1 parent 37ee8fe commit ec2d90a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/fasttrack-nuget.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ jobs:
3030
- name: Pack NuGet package
3131
run: dotnet pack FastTrack/FastTrack.csproj --configuration Release --no-build --output nupkgs
3232

33+
- name: List contents of nupkgs directory
34+
run: |
35+
echo "Listing contents of nupkgs directory:"
36+
dir nupkgs
37+
38+
- name: Fail if no .nupkg found
39+
run: |
40+
if (!(Test-Path -Path "nupkgs/*.nupkg")) { Write-Error "No .nupkg file found in nupkgs directory."; exit 1 }
41+
shell: pwsh
42+
3343
- name: Publish to NuGet.org
3444
uses: actions/upload-artifact@v4
3545
with:

0 commit comments

Comments
 (0)