-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathappveyor.yml
52 lines (42 loc) · 1.52 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
version: "{build}"
pull_requests:
do_not_increment_build_number: true
branches:
only:
- main
image: Visual Studio 2019
before_build:
- ps: |
if ($env:APPVEYOR_REPO_COMMIT_MESSAGE -match "^(\[release\]).*$") {
$env:SIGNPATH_SIGNING_POLICY = "release-signing"
$env:BUILD_CONFIG = "Release"
} else {
$env:SIGNPATH_SIGNING_POLICY = "disabled"
$env:BUILD_CONFIG = "Debug"
}
Write-Host "Set SIGNPATH_SIGNING_POLICY to $($env:SIGNPATH_SIGNING_POLICY)"
Write-Host "Set BUILD_CONFIG to $($env:BUILD_CONFIG)"
build_script:
- cmd: git submodule update --init --recursive
- cmd: nuget restore
- cmd: msbuild /p:Configuration=%BUILD_CONFIG% /p:Platform="Any CPU"
test: off
cache:
- packages -> **\packages.config
- '%LocalAppData%\NuGet\Cache'
- '%LocalAppData%\NuGet\v3-cache'
artifacts:
- path: 'SkyblockClient\bin\%BUILD_CONFIG%\*.exe'
environment:
# SIGNPATH_SIGNING_POLICY: test-signing
ARTIFACT_CONFIGURATION: initial
SIGNPATH_CI_USER_TOKEN:
secure: UIKay6EIQiemn7u2dSl44bk1Cz4Ex97tqqsGlmdUx4wjv9uBGKMqMLFTOxvwunRn
SIGNPATH_ORGANIZATION_ID: 4602a4d1-1183-4694-b015-e8276ccaeb42
SIGNPATH_PROJECT: SkyblockClient
deploy:
- provider: Webhook
url: https://app.signpath.io/API/v1/%SIGNPATH_ORGANIZATION_ID%/Integrations/AppVeyor?ProjectSlug=%SIGNPATH_PROJECT%&SigningPolicySlug=%SIGNPATH_SIGNING_POLICY%&ArtifactConfigurationSlug=%ARTIFACT_CONFIGURATION%
authorization: 'Bearer %SIGNPATH_CI_USER_TOKEN%'
on:
APPVEYOR_REPO_TAG: true