-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (32 loc) · 1.07 KB
/
cd.yaml
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
name: CD
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- name: "Checkout Master Branch"
uses: actions/checkout@v2
- name: Update Assembly Version
run: |
python .openapi-generator/update_assembly_version.py
- name: Create key pair for signing the assembly
working-directory: src/DragonflySchema
run: |
"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\sn.exe" -k LadybugTools.snk
ls
shell: cmd
- name: Build
run: |
dotnet restore
dotnet build --configuration Release /nowarn:CS0472,CS0108
- name: Run Unit Tests
working-directory: src/DragonflySchema.Tests
run: |
dotnet test --configuration Release
- name: Deploy
working-directory: src/DragonflySchema
run: |
dotnet pack --configuration Release
dotnet nuget push bin\Release\DragonflySchema.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json