-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
55 lines (43 loc) · 1.64 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
50
51
52
53
54
55
version: 1.0.9.{build}
skip_branch_with_pr: true
image: Visual Studio 2019
# clone directory
clone_folder: c:\projects\SalesManager
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
before_build:
- cmd: nuget restore
build:
verbosity: minimal
environment:
my_secret:
secure: pPM+5t4pxJs8OJlB/LrK32VzAn0hkgwa+MtPn/yGhLA=
install:
- nuget install secure-file -ExcludeVersion
- secure-file\tools\secure-file -decrypt "c:\projects\SalesManager\Sales Manager\Sales Manager.snk.enc" -secret %my_secret%
# NSIS Paths
# https://www.appveyor.com/docs/build-environment/#tools
- set PATH=%PATH%;C:\Program Files (x86)\NSIS;
# NSIS Plugin (NsisDotNetChecker)
- appveyor DownloadFile https://github.com/ReVolly/NsisDotNetChecker/archive/master.zip
- 7z e master.zip -o"C:\Program Files (x86)\NSIS\Include" DotNetChecker.nsh -r
- 7z e master.zip -o"C:\Program Files (x86)\NSIS\Plugins\x86-unicode" DotNetChecker.dll -r
after_build:
- cmd: 7z a Sales.Manager.Portable.zip "c:\projects\SalesManager\Sales Manager\bin\Release\"
- cmd: makensis.exe "c:\projects\SalesManager\Sales Manager\Setup\Sales Manager.nsi"
artifacts:
- path: Sales.Manager.Setup.exe
- path: Sales.Manager.Portable.zip
deploy:
release: $(APPVEYOR_REPO_TAG_NAME)
description: '// TODO: Write Release Notes'
provider: GitHub
auth_token:
secure: WHW27Nvc8zNhfyhxIYdl/NwbrkFzvSX0vE4/CS8iByPXM6rcztWhUrDXJ7eejLBY
draft: false
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only