-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
62 lines (46 loc) · 1.72 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
environment:
access_token:
secure: JzZz7EBJ8LeHp8E4NNoZi2DHm2roUthD4/6OAO6TrnUkdgK2v6UPFwWk2KEnOWdS
platform: x64
configuration: Release
init:
- git config --global credential.helper store
# visit http://cameronelliott.com to contact me. I want to hear from you.
- git config --global user.email "[email protected]"
- git config --global user.name "Cameron Elliott"
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
install:
# Checkout master branch
- git checkout master
- cinst docfx
#nuget restore
# '%APPVEYOR_BUILD_FOLDER%\lib\src\winbuild.bat'
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%\dotnet"
#- nuget restore
- cd "%APPVEYOR_BUILD_FOLDER%\lib\src"
# - winbuild.bat
# - git checkout master
# - git add -f -A "%APPVEYOR_BUILD_FOLDER%\lib\bin"
# - git commit -a -m "Commit from AppVeyor master"
on_success:
# Switch branches to gh-pages, clean the folder, copy everything in from the Wyam output, and commit/push
# See http://www.appveyor.com/docs/how-to/git-push for more info
#- rmdir /s/q docs
#- xcopy temp\html docs\ /e
# docfx build --logLevel Verbose docfx.json
- cd "%APPVEYOR_BUILD_FOLDER%\docfx_project"
- docfx
- cd "%APPVEYOR_BUILD_FOLDER%"
# save updated docfx manifest
# - git checkout master
#- git add -f -A "%APPVEYOR_BUILD_FOLDER%\docfx_project"
# - git commit -a -m "Commit from AppVeyor master"
# XXX SHOULD BE LAST STEP BECAUSE OF 'git checkout gh-pages'
- git checkout gh-pages
- dir docfx_project
- xcopy docfx_project\_site . /E/Y
- rmdir /s/q docfx_project
- git add -A
- git commit -a -m "Commit from AppVeyor"
- git push