-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.21 KB
/
ci-build.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: ci-build
on:
push:
branches:
- main
- 'rel/v*'
paths-ignore:
- README.md
pull_request:
branches:
- main
paths-ignore:
- README.md
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0'
- name: Install dependencies
run: dotnet restore UnlockedData.Mapael.sln
- name: ngbv set version
uses: aarnott/[email protected]
with:
setAllVars: true
- run: echo "NBGV_SemVer2 $NBGV_SemVer2"
- name: Build
run: dotnet build UnlockedData.Mapael.sln --configuration Release --no-restore
- name: Unit Tests
run: dotnet test UnlockedData.Mapael.sln --no-restore --verbosity normal
- name: Create Package Dir
run: mkdir ${{ github.workspace }}/package
- name: Pack
run: dotnet pack UnlockedData.Mapael.sln --no-build -c Release --output "${{ github.workspace }}/package"
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: nuget
path: ${{ github.workspace }}/package