2020-10-07 14:01:18 +08:00
|
|
|
name: Package to Nuget
|
2020-09-29 00:47:57 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-03-17 11:42:46 +08:00
|
|
|
- pack
|
2021-07-17 15:51:30 +08:00
|
|
|
- hotfix
|
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:
|
2020-12-19 00:16:18 +08:00
|
|
|
- uses: actions/checkout@v2
|
2020-09-29 00:47:57 +08:00
|
|
|
|
2021-09-26 10:10:21 +08:00
|
|
|
- name: Setup .NET Core 2.1
|
2020-09-29 00:47:57 +08:00
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
2021-09-26 10:10:21 +08:00
|
|
|
dotnet-version: 2.1.x
|
|
|
|
|
2021-10-16 16:54:22 +08:00
|
|
|
- name: Setup .NET Core 6
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: 6.0.x
|
|
|
|
|
2020-09-29 00:47:57 +08:00
|
|
|
- name: Publish to Nuget
|
|
|
|
env:
|
|
|
|
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
2021-09-26 10:10:21 +08:00
|
|
|
Bundle: True
|
|
|
|
|
2020-09-29 00:47:57 +08:00
|
|
|
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
|