mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 12:09:59 +08:00
7218fb3319
* chore: 更新自动化脚本 * refactor: 更新样式 * doc: 更新示例 * test: 增加单元测试 * chore: bump version 8.1.10-beta02
30 lines
641 B
YAML
30 lines
641 B
YAML
name: Package to Nuget
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- pack
|
|
- hotfix
|
|
|
|
jobs:
|
|
pack:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET Core SDK
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Publish to Nuget
|
|
env:
|
|
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
|
Bundle: True
|
|
|
|
run: |
|
|
dotnet build src/BootstrapBlazor
|
|
dotnet pack src/BootstrapBlazor -c Release -o publish
|
|
dotnet nuget push publish/BootstrapBlazor.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
|