forked from wangkanai/wangkanai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
43 lines (43 loc) · 938 Bytes
/
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
version: 4.0.0-build{build}
image:
- Visual Studio 2019
init:
- git config --global core.autocrlf true
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
pull_requests:
do_not_increment_build_number: true
branches:
only:
- main
- /^feature\/.$/
- /^release\/.$/
- /^(.*\/)?ci-.*$/
clone_depth: 1
before_build:
- ps: |
dotnet --version
dotnet restore
build_script:
- ps: |
dotnet build -c Release
dotnet pack -c Release -o .\artifacts
test_script:
- ps: |
dotnet test
artifacts:
- path: '**\*.nupkg'
deploy:
- provider: NuGet
server: https://www.myget.org/F/wangkanai/api/v2/package
api_key:
secure: YY8jIrOCrsuVBg/iqwS2jVwZ462EWKFMZ+95fBEDqM1DiH0H2w7OMgUx3rQ3XTzl
artifact: /.*\.nupkg/
on:
branch: main