BootstrapBlazor3/.github/workflows/pack.yml

43 lines
1.8 KiB
YAML
Raw Normal View History

2020-10-07 14:01:18 +08:00
name: Package to Nuget
on:
push:
branches:
- master
- dev
- hot-fix
jobs:
2020-10-07 14:01:18 +08:00
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Publish to Nuget
env:
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
run: |
dotnet pack src/BootstrapBlazor -c Release -o publish
2020-10-28 15:58:47 +08:00
dotnet nuget push publish/BootstrapBlazor.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
dotnet pack src/Extensions/Components/BootstrapBlazor.Chart -c Release -o publish
2020-10-28 15:58:47 +08:00
dotnet nuget push publish/BootstrapBlazor.Chart.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
dotnet pack src/Extensions/Components/BootstrapBlazor.TableExport -c Release -o publish
2020-10-28 15:58:47 +08:00
dotnet nuget push publish/BootstrapBlazor.TableExport.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
dotnet pack src/Extensions/Components/BootstrapBlazor.Markdown -c Release -o publish
dotnet nuget push publish/BootstrapBlazor.Markdown.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
dotnet pack src/Extensions/DataServices/BootstrapBlazor.DataAcces.EntityFrameworkCore -c Release -o publish
dotnet nuget push publish/BootstrapBlazor.DataAcces.EntityFrameworkCore.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
dotnet pack src/Extensions/DataServices/BootstrapBlazor.DataAcces.PetaPoco -c Release -o publish
dotnet nuget push publish/BootstrapBlazor.DataAcces.PetaPoco.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate