-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (50 loc) · 1.99 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
56
57
58
59
60
61
62
version: 0.5.{build}.0
image: Visual Studio 2017
configuration: Release
platform:
- x86
- x64
before_build:
- start /wait msiexec /i WordpressDriveBoot\external\winfsp-1.7.20172.msi /qn ADDLOCAL=ALL
- cmd: nuget restore
assembly_info:
patch: true
file: AssemblyInfo.cs
assembly_version: '{version}'
assembly_file_version: '{version}'
build:
verbosity: normal
parallel: true
artifacts:
- path: WordpressDrive\bin\$(configuration)
name: WordpressDriveFiles
- path: WordpressDriveSetup\bin\$(configuration)\WordpressDriveSetup.msi
name: WordpressDriveSetup.msi
- path: WordpressDriveBoot\bin\$(configuration)\WordpressDriveSetup.exe
name: WordpressDriveFull.exe
- path: WordpressDrive\bin\$(platform)\$(configuration)
name: WordpressDriveFiles_x64
after_build:
- ps: >-
$fileToCheck = 'WordpressDriveSetup\bin\x64\Release\WordpressDriveSetup.msi'
if (Test-Path $fileToCheck -PathType leaf)
{
appveyor PushArtifact WordpressDriveSetup\bin\x64\Release\WordpressDriveSetup.msi -FileName WordpressDriveSetup\bin\x64\Release\WordpressDriveSetup_x64.msi
}
$fileToCheck = 'WordpressDriveBoot\bin\x64\Release\WordpressDriveSetup.exe'
if (Test-Path $fileToCheck -PathType leaf)
{
appveyor PushArtifact WordpressDriveBoot\bin\x64\Release\WordpressDriveSetup.exe -FileName WordpressDriveBoot\bin\x64\Release\WordpressDriveSetup_64.exe
}
deploy:
release: WordpressDrive-v$(APPVEYOR_BUILD_VERSION)
description: 'Prerelease'
provider: GitHub
auth_token:
secure: UYCMPPzbi/a4gZvxr5fNEY7yzHzOVMcEEjBgClu8WRZXiS15RHConewJjKqIdULE
artifact: WordpressDriveFiles,WordpressDriveSetup.msi,WordpressDriveFull.exe,WordpressDriveFiles_x64,WordpressDriveSetup\bin\x64\Release\WordpressDriveSetup_x64.msi,WordpressDriveBoot\bin\x64\Release\WordpressDriveSetup_64.exe
draft: false
prerelease: false
on:
branch: main # release from master branch only
APPVEYOR_REPO_TAG: true # deploy on tag push only