-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
46 lines (35 loc) · 1.09 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
version: 1.0.{build}
image: Visual Studio 2015
environment:
access_token:
secure: c1r9fMnxBX4DW0SvZ4V/5Nucdi8pzA2YiQ/wsiyfjIY19q4RyKCYZTtU+2YQbiLT
install:
# Clone Submodules
- git submodule update --init
# Install docfx using Chocolatey
- cinst docfx -y
build_script:
# Generate documentation
- docfx
test_script:
- ps: >-
if (-not (Test-Path api) -or ((Get-ChildItem api -Filter *.yml | Measure-Object) -eq 0))
{
throw "No Metadata generated";
}
deploy_script:
# Clone target repository
- git clone https://github.com/ManagedBass/ManagedBass.GitHub.io.git _target
# Move repository to output folder
- ps: Move-Item _target\.git _site
# Setup git credentials
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "Mathew Sachin"
# Commit
- cd _site
- git add -A
- git commit -m "CI Update"
# Push back changes
- git push