-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 917 Bytes
/
ci.yml
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
name: Continuous Integration
on:
push:
branches:
- 'main'
paths-ignore:
- 'doc/**'
- 'CONTRIBUTING.md'
- 'README.md'
jobs:
build:
runs-on: windows-latest
steps:
- name: Clone
uses: actions/checkout@v3
with:
fetch-depth: 0 # Entire history required by Nerdbank.GitVersioning
- name: Set up .NET
uses: actions/setup-dotnet@v2
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --filter "TestCategory != Bug & TestCategory != FeatureRequest" --verbosity normal
- name: Pack
run: dotnet pack --configuration Release --no-build
- name: Publish
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate