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
|
|
|
|
|
|
|
|
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-10-28 01:50:02 +08:00
|
|
|
dotnet-version: 3.1.403
|
2020-09-29 00:47:57 +08:00
|
|
|
|
|
|
|
- name: Publish to Nuget
|
|
|
|
env:
|
|
|
|
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
|
|
|
run: |
|
2020-10-28 01:50:02 +08:00
|
|
|
dotnet build src/BootstrapBlazor -c Release
|
|
|
|
dotnet pack src/BootstrapBlazor -c Release -o publish --no-build --no-restore
|
|
|
|
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
|
|
|
|
dotnet build src/BootstrapBlazor.Chart -c Release
|
|
|
|
dotnet pack src/BootstrapBlazor.Chart -c Release -o publish --no-build --no-restore
|
2020-09-29 00:47:57 +08:00
|
|
|
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
|