Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RadekVyM authored Feb 1, 2024
1 parent 2946297 commit 6d20cad
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 6d20cad

Please sign in to comment.