This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.appveyor.yml
39 lines (37 loc) · 1.2 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
version: "{build}"
image: Visual Studio 2017
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
ZEUS_HOOK_BASE:
secure: dcqtt6sxxBV0tDkXmPZOy0iOx17uW6ZfrPOivyLDzHaS9JeWUES653Lly9ZHQm7qZn1qbs4hL4BYaNSrhD5kraY9FXBkwtNmUC9eAxL/n8QtRFJu5uXrkSpewn+UAqbghVXAKCxOhD9WJYG72g+QcqmEBTZiO1RxRJhwsLBR5YY=
branches:
only:
- master
- /^release\/.*$/
install:
# Push job information to Zeus
- npm install -g @zeus-ci/cli
- zeus job update --status=pending -B "%APPVEYOR_PULL_REQUEST_TITLE%" -J "%APPVEYOR_JOB_NAME%" ||
echo "%$APPVEYOR_REPO_BRANCH%" | findstr /V "release/">nul
test: off
build_script:
- ps: ./build.ps1
dotnet_csproj:
patch: true
file: 'src\**\*.csproj'
version: "{version}"
package_version: "{version}"
artifacts:
- path: '**\*.nupkg'
on_success:
- ps: >
$ErrorActionreferencePreference = "stop";
Resolve-Path -Relative .\src\*\bin\Release\*.nupkg |
Foreach-Object { zeus upload -t "application/zip+nupkg" $_};
if ($?) { zeus job update --status=passed }
else { $host.SetShouldExit(1) }
on_failure:
- zeus job update --status=failed ||
echo "%$APPVEYOR_REPO_BRANCH%" | findstr /V "release/">nul