-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
49 lines (48 loc) · 1.38 KB
/
appveyor.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
48
49
version: "1.0.{build}"
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2022
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: "{version}"
package_version: "{version}"
assembly_version: "{version}"
file_version: "{version}"
informational_version: "{version}"
branches:
only:
- main
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
# Install repo specific stuff here
before_build:
- cmd: dotnet --version
- cmd: dotnet restore src/lobe.sln --verbosity q
build_script:
- cmd: dotnet build src/lobe.sln
after_build:
# For once the build has completed
- cmd: dotnet pack src/lobe.OpenCvSharp/lobe.OpenCvSharp.csproj -o pacakges
- cmd: dotnet pack src/lobe.ImageSharp/lobe.ImageSharp.csproj -o pacakges
- cmd: dotnet pack src/lobe.Onnx/lobe.Onnx.csproj -o pacakges
- cmd: dotnet pack src/lobe/lobe.csproj -o pacakges
- cmd: dotnet pack src/lobe.Http/lobe.Http.csproj -o pacakges
artifacts:
- path: "pacakges/**/*.nupkg"
name: NugetPacakges
clone_depth: 1
test_script:
- cmd: dotnet test src/lobe.sln
on_finish:
# any cleanup in here
deploy:
- provider: NuGet
api_key:
secure: Vu/pvwJFx+bqA6ZJQChPbebrFIik5JLtR1kNjX4/cjMhUphd0aZ/aNXiXKVoPSWo
skip_symbols: false
artifact: /.*(\.|\.s)nupkg/
on:
branch: main