-
-
Notifications
You must be signed in to change notification settings - Fork 384
30 lines (24 loc) · 652 Bytes
/
pack.yml
File metadata and controls
30 lines (24 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Package to Nuget
on:
push:
branches:
- pack
- release
- 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: 9.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