-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
48 lines (43 loc) · 1.02 KB
/
build-dev.yml
File metadata and controls
48 lines (43 loc) · 1.02 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build and deploy
on:
push:
paths-ignore:
- 'docs/**'
- 'yarn.lock'
- 'package.json'
- '**/*.md'
branches:
- dev
tags:
- '*'
permissions:
contents: read
id-token: write
jobs:
nuget:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
-
name: Checkout
uses: actions/checkout@v6
-
name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: NuGet login
uses: NuGet/login@v1
id: nuget-login
with:
user: ${{ secrets.NUGET_USER }}
-
name: Create and push NuGet package
run: |
dotnet pack -c Release -o nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
dotnet nuget push **/*.nupkg --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate