-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppVeyor.Release.yml
74 lines (57 loc) · 1.9 KB
/
AppVeyor.Release.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#---------------------------------#
# General Configuration #
#---------------------------------#
# Branches to build (whitelist)
branches:
only:
- master
# Don't trigger a build when a commit is tagged
skip_tags: true
# Set clone depth (we don't need history to build)
clone_depth: 1
# Maximum number of concurrent jobs for the project
max_jobs: 1
#---------------------------------#
# Environment Configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2019 Preview
# Scripts that are called at very beginning, before repo cloning
init:
# Good practice, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
# Scripts that are called after repo cloning, but before building
install:
- cmd: git submodule update --init --recursive
# Set environment variables
environment:
GIT_PASSWORD:
secure: VcjmWBPVu6Dwy4L72+Kv6YpsC3tzx7++jt/Idr9QZio=
GIT_USERNAME:
secure: CoE8vQ7m2x0WlSCl1Nb/wg==
NUGET_APIKEY:
secure: sjAJjx0S7PgXGe92S9XTewKg+BTF4AE1WfmY7LnU+t/PfcMknTRjb3Paqc3WpSEB
#---------------------------------#
# Build Configuration #
#---------------------------------#
# Run custom scripts instead of automatic MSBuild
build_script:
- ps: ./build.ps1 -T ProductionBuild
#---------------------------------#
# Test Configuration #
#---------------------------------#
# Run custom scripts instead of automatic tests
test_script:
- ps: ./build.ps1 -T ProductionTest
#---------------------------------#
# Artifacts Configuration #
#---------------------------------#
# Finding all *.nupkg files in build directory recursively
artifacts:
- path: 'src\**\*.nupkg'
#---------------------------------#
# Deployment Configuration #
#---------------------------------#
# Deploying to NuGet feed
deploy_script:
- ps: ./build.ps1 -T NuGetPush