BootstrapBlazor3/.github/workflows/pack.yml
Argo bc0254ddde !2052 chore(#I4HJYM): update CI&CD scripts
* chore: update CI scripts
2021-11-09 09:54:46 +00:00

34 lines
709 B
YAML

name: Package to Nuget
on:
push:
branches:
- pack
- hotfix
jobs:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.x
- name: Setup .NET Core 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Publish to Nuget
env:
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
Bundle: True
run: |
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