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:
|
2024-01-27 18:13:23 +08:00
|
|
|
- uses: actions/checkout@v4
|
2020-09-29 00:47:57 +08:00
|
|
|
|
2023-09-01 01:41:59 +08:00
|
|
|
- name: Setup .NET Core SDK
|
2024-01-27 18:13:23 +08:00
|
|
|
uses: actions/setup-dotnet@v4
|
2021-10-16 16:54:22 +08:00
|
|
|
with:
|
2023-11-15 10:57:18 +08:00
|
|
|
dotnet-version: 8.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
|