forked from JustinGrote/PowerHTML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
67 lines (63 loc) · 2.49 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
# See Http://Www.Appveyor.Com/Docs/Appveyor-Yml for many more options
version: '{build}-{branch}'
#Publish to PowerShell Gallery with this key
environment:
NuGetAPIKey:
secure: +JR28PO1kbiIr81CqjFuhMhBWYRoFqUZqsTjAD3fWkwWcdRiyz5Utk3t0o4Lhw1G
GitHubAPIKey:
secure: AsYkTbn6yg65ajcH/zie+jXylxvv8eaqe6dlK0262Bgi3SApjuzOJmhg1DwBy9xh
GitHubUserName: mavjav-edu
image: Visual Studio 2022
install:
- ps: Install-Module -Name InvokeBuild -Confirm:$false -ErrorAction Stop -Force
# Skip on updates to the readme.
# We can force this by adding [skip ci] or [ci skip] anywhere in commit message
skip_commits:
message: /updated README.*|Update README.*s/
#Kick off the CI/CD pipeline. We do test and build in the same script
#To be portable to non-Appveyor builds
#We run it at the test step so that we can upload test results back to the system.
build_script:
- ps: Invoke-Build Build,Package
test_script:
- ps: Invoke-Build Test
deploy_script:
- ps: Invoke-Build Deploy
notifications:
- provider: Webhook
url: ${{ secrets.WEBHOOK_URL }}
method: POST
body: >-
{
"title": "AppVeyor Build {{#passed}}passed{{/passed}}{{#failed}}failed{{/failed}}",
"summary": "Build {{projectName}} {{buildVersion}} {{status}}",
"themeColor": "{{#passed}}00FF00{{/passed}}{{#failed}}FF0000{{/failed}}",
"sections": [
{
"activityTitle": "{{commitAuthor}} on {{commitDate}} ( {{repositoryProvider}}/{{repositoryName}} )",
"activityText": "[Build {{projectName}} {{buildVersion}} {{status}}]({{buildUrl}})"
},
{
"title": "Details",
"facts": [
{
"name": "Commit",
"value": "[{{commitId}} by {{commitAuthor}} on {{branch}} at {{commitDate}}]({{commitUrl}})"
},
{
"name": "Message",
"value": "{{commitMessage}}"
},
{
"name": "Duration",
"value": "{{duration}} ({{started}} - {{finished}})"
}
]
}
]
}
on_build_success: true
on_build_failure: true
on_build_status_changed: true
on_finish:
- ps: if ($env:APPVEYOR_REPO_COMMIT_MESSAGE -match 'AppveyorRDPDebug') {$blockRdp = $true; iex ((New-Object Net.Webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))}