-
-
Notifications
You must be signed in to change notification settings - Fork 87
47 lines (37 loc) · 1.06 KB
/
lib.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: build
env:
VERSION: '6.0.0'
ASM_VERSION: '6.0.0'
VERSION_SUFFIX: '-pre.1'
on:
push:
branches:
- master
- codegen
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check-out source code
with:
submodules: true
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- name: Test
run: dotnet test src/Config.Net.sln -c release --filter Category!=Integration --no-restore --verbosity normal /p:Version=${{ env.VERSION }} /p:FileVersion=${{ env.VERSION }} /p:AssemblyVersion=${{ env.ASM_VERSION }}
- name: Build
run: dotnet build src/Config.Net.sln --configuration Release --no-restore /p:Version=${{ env.VERSION }} /p:FileVersion=${{ env.VERSION }} /p:AssemblyVersion=${{ env.ASM_VERSION }}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: nuget
path: src/**/*.nupkg