From 23ed2027c61509bb2bc2438684798a9e5f8b2a50 Mon Sep 17 00:00:00 2001 From: Francesco Del Re Date: Mon, 18 Nov 2024 01:56:28 +0100 Subject: [PATCH] fix(actions): correct publish workflow for NuGet package --- .github/workflows/publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 739d5bd..1349f68 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}