2023-01-31 22:17:08 +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:
|
2023-01-27 16:36:26 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-09-29 00:47:57 +08:00
|
|
|
|
2022-11-09 13:55:25 +08:00
|
|
|
- name: Setup .NET Core 7
|
2021-10-16 16:54:22 +08:00
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
2022-11-09 13:55:25 +08:00
|
|
|
dotnet-version: 7.0.x
|
2021-10-16 16:54:22 +08:00
|
|
|
|
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: |
|
2022-04-18 17:08:23 +08:00
|
|
|
dotnet build src/BootstrapBlazor
|
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
|