PushToNuget #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PushToNuget | |
env: | |
NUGET_DIR: '${{ github.workspace }}/nuget' | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Pack Blazor.Diagrams.Core | |
working-directory: src/Blazor.Diagrams.Core | |
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release --output ${{ env.NUGET_DIR }}' | |
- name: Pack Blazor.Diagrams | |
working-directory: src/Blazor.Diagrams | |
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release --output ${{ env.NUGET_DIR }}' | |
- name: Pack Blazor.Diagrams.Algorithms | |
working-directory: src/Blazor.Diagrams.Algorithms | |
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release --output ${{ env.NUGET_DIR }}' | |
- name: Test | |
run: > | |
find "${{ env.NUGET_DIR }}" -type f -iname "*.nupkg"|while read file | |
do | |
echo "$file" | |
done | |
- name: Push Blazor.Diagrams.Core | |
run: 'dotnet nuget push ${{ env.NUGET_DIR }}/Z.Blazor.Diagrams.Core.3.0.1.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate' | |
- name: Push Blazor.Diagrams | |
run: 'dotnet nuget push ${{ env.NUGET_DIR }}/Z.Blazor.Diagrams.3.0.1.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate' | |
- name: Push Blazor.Diagrams.Algorithms | |
run: 'dotnet nuget push ${{ env.NUGET_DIR }}/Z.Blazor.Diagrams.Algorithms.3.0.1.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate' |