forked from svg-net/SVG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (51 loc) · 1.73 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: '{build}'
image: Visual Studio 2019
environment:
access_token:
secure: XMbLDC3+c/MyXicj/h1j17YScPrEbIxAPzhyg9LBCJ/BOfRZHsA8znU3vwmfZbO8
before_build:
- ps: nuget restore Source\Svg.csproj
- ps: nuget restore Samples\SvgConsole\SvgConsole.csproj
- ps: nuget restore Tests\Svg.UnitTests\Svg.UnitTests.csproj
- ps: nuget install NUnit.ConsoleRunner -Version 3.10.0 -OutputDirectory tools
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
git checkout $env:APPVEYOR_REPO_BRANCH -q
choco install docfx -y
}
branches:
only:
- master
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
build:
project: Source\Svg.sln
after_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
docfx docfx.json
if ($lastexitcode -ne 0){
throw [System.Exception] "docfx build failed with exit code $lastexitcode."
}
git config --global credential.helper store
git config --local core.autocrlf true
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
git config --global user.email $env:tebjan@noreply.com
git config --global user.name $env:tebjan
git clone https://github.com/vvvv/SVG.git -b gh-pages origin_site -q
Copy-Item origin_site/.git _site -recurse
CD _site
git add -A 2>&1 > $null
git commit -m "CI Updates" -q
git push origin gh-pages -q
}
artifacts:
- path: 'Source\bin\Release\*.nupkg'
type: NuGetPackage