2020-10-07 14:01:18 +08:00
|
|
|
name: Package to Nuget
|
2020-09-29 00:47:57 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- dev
|
2020-11-12 14:57:36 +08:00
|
|
|
- hot-fix
|
2020-09-29 00:47:57 +08:00
|
|
|
|
|
|
|
jobs:
|
2020-10-07 14:01:18 +08:00
|
|
|
pack:
|
2020-09-29 00:47:57 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
|
|
|
|
- name: Setup .NET Core
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
2020-11-11 16:06:36 +08:00
|
|
|
dotnet-version: 5.0.100
|
2020-09-29 00:47:57 +08:00
|
|
|
|
|
|
|
- name: Publish to Nuget
|
|
|
|
env:
|
|
|
|
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
|
|
|
run: |
|
2020-10-28 15:45:41 +08:00
|
|
|
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
|
|
|
|
|
2020-12-13 11:01:08 +08:00
|
|
|
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
|
|
|
|
|
2020-12-13 11:01:08 +08:00
|
|
|
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
|
2020-10-28 20:14:27 +08:00
|
|
|
|
2020-12-13 11:01:08 +08:00
|
|
|
dotnet pack src/Extensions/Components/BootstrapBlazor.Markdown -c Release -o publish
|
2020-10-28 20:14:27 +08:00
|
|
|
dotnet nuget push publish/BootstrapBlazor.Markdown.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
|
2020-12-13 21:02:38 +08:00
|
|
|
|
|
|
|
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
|