From 6d20cadf147490b615019b0d30cf385840e4b2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Vym=C4=9Btal=C3=ADk?= <65116078+RadekVyM@users.noreply.github.com> Date: Thu, 1 Feb 2024 21:42:21 +0100 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8e7b386..68ee27e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,14 +29,15 @@ env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true DOTNET_CLI_TELEMETRY_OPTOUT: true DOTNET_NOLOGO: true - NuGetDirectory: ${{ github.workspace }}/nuget + CoreNuGetDirectory: ${{ github.workspace }}/nuget/Core + SimpleShellNuGetDirectory: ${{ github.workspace }}/nuget/SimpleShell defaults: run: shell: pwsh jobs: - create_nuget: + publish: runs-on: windows-2022 steps: - name: Checkout @@ -50,11 +51,11 @@ jobs: - name: Pack SimpleToolkit.Core if: ${{ inputs.pack_core || inputs.push_core }} - run: dotnet pack ./src/SimpleToolkit.Core/SimpleToolkit.Core.csproj --configuration Release --output ${{ env.NuGetDirectory }} + run: dotnet pack ./src/SimpleToolkit.Core/SimpleToolkit.Core.csproj --configuration Release --output ${{ env.CoreNuGetDirectory }} - name: Pack SimpleToolkit.SimpleShell if: ${{ inputs.pack_simpleshell || inputs.push_simpleshell }} - run: dotnet pack ./src/SimpleToolkit.SimpleShell/SimpleToolkit.SimpleShell.csproj --configuration Release --output ${{ env.NuGetDirectory }} + run: dotnet pack ./src/SimpleToolkit.SimpleShell/SimpleToolkit.SimpleShell.csproj --configuration Release --output ${{ env.SimpleShellNuGetDirectory }} - name: Upload Artifacts uses: actions/upload-artifact@v3 @@ -66,8 +67,8 @@ jobs: - name: Push SimpleToolkit.Core if: ${{ inputs.pack_core && inputs.push_core }} - run: dotnet nuget push ${{ env.NuGetDirectory }}/SimpleToolkit.Core.*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push ${{ env.CoreNuGetDirectory }}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json - name: Push SimpleToolkit.SimpleShell if: ${{ inputs.pack_simpleshell && inputs.push_simpleshell }} - run: dotnet nuget push ${{ env.NuGetDirectory }}/SimpleToolkit.SimpleShell.*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push ${{ env.SimpleShellNuGetDirectory }}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json