-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
95 lines (58 loc) · 2.26 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: 1.4.4+{build}
image: Visual Studio 2019
configuration: Release
platform: x64
environment:
API_KEY:
secure: kX2401UHha1RA2FkQXXCMAorfkR2VAU72ocHPxMsLuE=
branches:
only:
- master
install:
- ps: >-
# Visual C++ Redistributable for Content Pipeline
choco install vcredist2012
# Install MonoGame
(New-Object Net.WebClient).DownloadFile('https://github.com/MonoGame/MonoGame/releases/download/v3.7.1/MonoGameSetup.exe', 'C:\MonoGameSetup.exe')
Invoke-Command -ScriptBlock {C:\MonoGameSetup.exe /S /v/qn}
# Restore NuGet Packages
nuget restore
before_build:
- ps: >-
# Prepare module destination
$docs = [Environment]::GetFolderPath("MyDocuments")
$modulesDest = "$($docs)\Guild Wars 2\addons\blishhud\modules"
New-Item -Type dir "$modulesDest"
# Prepare Blish HUD.exe dependency
$blishHudPath = "C:\projects\Blish-HUD\Blish HUD\bin\x64\Debug\net472\"
# Download latest Blish HUD artifact
$headers = @{}
$headers['Authorization'] = "Bearer $env:API_KEY"
$headers["Content-type"] = "application/json"
$project = Invoke-RestMethod -Uri 'https://ci.appveyor.com/api/projects/dlamkins/blish-hud/' -Headers $headers -Method Get
$jobId = $project.build.jobs[0].jobId
$artifacts = Invoke-RestMethod -Method Get -Uri "https://ci.appveyor.com/api/buildjobs/$jobId/artifacts" -Headers $headers
$artifact = ($artifacts | Where { $_.type -eq "Zip" })[0]
$downloadUrl = "https://ci.appveyor.com/api/buildjobs/$jobId/artifacts/$($artifact.fileName)"
$downloadPath = "c:\blishhud.zip"
Invoke-WebRequest $downloadUrl -OutFile $downloadPath
&"7z" @("x", "$downloadPath", "-o$blishHudPath")
build:
project: KillProof Module.sln
verbosity: normal
after_build:
- ps: >-
$docs = [Environment]::GetFolderPath("MyDocuments")
$modulesDest = "$($docs)\Guild Wars 2\addons\blishhud\modules"
Get-ChildItem $modulesDest | ForEach-Object {
Push-AppveyorArtifact $_.FullName
}
deploy:
- provider: GitHub
tag: v$(appveyor_build_version)
release: KillProof Module v$(appveyor_build_version)
auth_token:
secure: zwWAJteWhyBGTAIIJ00g1YEuX4saBUurtfyQ7N4o7OI2K/gytaXxcPt53K7MLMEY
repository: blish-hud/KillProof-Module
artifact: KillProof.bhm
draft: true