forked from antonpup/Aurora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (45 loc) · 1.54 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: 0.7.2+{build}
pull_requests:
do_not_increment_build_number: true
branches:
except:
- pi-lighting
skip_branch_with_pr: true
configuration: Release
platform: x64
image: Visual Studio 2017
init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
}
before_build:
- ps: >-
(Get-Content Project-Aurora\Project-Aurora\Properties\AssemblyInfo.cs) -replace '\[assembly: AssemblyFileVersion\("(.*)"\)\]', "[assembly: AssemblyFileVersion(`"$($env:APPVEYOR_BUILD_VERSION)`")]" | Set-Content Project-Aurora\Project-Aurora\Properties\AssemblyInfo.cs
- cmd: >-
git submodule update --init --recursive
cd Project-Aurora
nuget restore
after_build:
- cmd: >-
set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
ISCC.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% %APPVEYOR_BUILD_FOLDER%\Installer\installer.iss
build:
project: Project-Aurora\Project-Aurora.sln
verbosity: minimal
artifacts:
- path: Build\Release
name: Aurora-v$(appveyor_build_version)
type: zip
- path: Aurora-setup-v$(appveyor_build_version).exe
deploy:
description: 'Release description'
provider: GitHub
auth_token:
secure: BawzLen0V83DjFE11VqpdO3eDPMDDsrWTaQsswrLcKcn2DF/hviRKkdTbGOX6kSL
artifact: Build\Aurora-v$(appveyor_build_version).zip,Aurora-setup-v$(appveyor_build_version).exe
draft: true
prerelease: false
on:
appveyor_repo_tag: true