-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.99 KB
/
publish.yml
File metadata and controls
65 lines (52 loc) · 1.99 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build and Publish GpioSimulator
on:
push:
branches: [ master ]
paths-ignore:
- '**/*.md'
- 'docs/**'
jobs:
publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Avoid shallow clone so NBGV can do its work.
submodules: 'recursive'
- name: Set version
uses: dotnet/nbgv@v0.4.2
with:
setAllVars: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
- name: Publish DevDecoder.GpioSimulator.Common
uses: alirezanet/publish-nuget@v3.1.0
with:
PROJECT_FILE_PATH: src/DevDecoder.GpioSimulator.Common/DevDecoder.GpioSimulator.Common.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
VERSION_STATIC: ${{env.NBGV_Version}}
- name: Publish DevDecoder.GpioSimulator
uses: alirezanet/publish-nuget@v3.1.0
with:
PROJECT_FILE_PATH: src/System.Device.Gpio/System.Device.Gpio.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
VERSION_STATIC: ${{env.NBGV_Version}}
- name: Publish DevDecoder.GpioSimulator.Drivers
uses: alirezanet/publish-nuget@v3.1.0
with:
PROJECT_FILE_PATH: src/DevDecoder.GpioSimulator.Drivers/DevDecoder.GpioSimulator.Drivers.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
VERSION_STATIC: ${{env.NBGV_Version}}