mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 13:39:39 +08:00
30 lines
639 B
YAML
30 lines
639 B
YAML
name: Package to Nuget
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- pack
|
|
- hotfix
|
|
|
|
jobs:
|
|
pack:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup .NET Core 7
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 7.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
|