46 lines (38 loc) · 1.03 KB
/
build-dev.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
name: Build and deploy
on:
push:
paths-ignore:
- 'docs/**'
- 'yarn.lock'
- 'package.json'
branches:
- dev
tags:
- '*'
jobs:
# test-netcore-linux:
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v2.3.4
# - uses: actions/setup-dotnet@v1
# with:
# dotnet-version: '3.1.201'
#
# - name: Run tests netcoreapp3.1
# run: dotnet test -c Release -f netcoreapp3.1
test-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Run tests on Windows for all targets
run: dotnet test -c Release
nuget:
runs-on: windows-latest
needs: [test-win] #,test-netcore-linux]
steps:
- uses: actions/checkout@v2.3.4
- name: Create and push NuGet package
run: |
dotnet pack -c Release -o nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate