Skip to content

Commit 28666fa

Browse files
fix pipeline
1 parent 6ccb1b7 commit 28666fa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ jobs:
3030
- name: Build Project
3131
run: dotnet build ./Testimize/Testimize.csproj --configuration Release --no-restore
3232

33+
- name: Ensure output directory exists
34+
run: mkdir -p ${{ github.workspace }}/nupkg
35+
3336
- name: Pack NuGet Package
34-
run: dotnet pack ./Testimize/Testimize.csproj --configuration Release --no-build --output ./nupkg
37+
run: dotnet pack ./Testimize/Testimize.csproj --configuration Release --no-build --output ${{ github.workspace }}/nupkg
38+
39+
- name: List contents of nupkg folder (debugging)
40+
run: ls -la ${{ github.workspace }}/nupkg
3541

3642
- name: Push to NuGet.org
37-
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGETKEY }} --source https://api.nuget.org/v3/index.json
43+
run: dotnet nuget push ${{ github.workspace }}/nupkg/*.nupkg --api-key ${{ secrets.NUGETKEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)