Skip to content

Commit 9f35545

Browse files
Add docs deploy to travis
1 parent 1e505c1 commit 9f35545

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ matrix:
8080
- WINDOWS_STABLE=false
8181
- LINUX_BETA=false
8282
- WINDOWS_BETA=false
83+
- language: csharp
84+
dist: trusty
85+
mono: latest
86+
git:
87+
depth: false
88+
before_script:
89+
- DOCS=true
90+
- nuget install docfx.console -ExcludeVersion
91+
- export DOCFX_TOOL="mono docfx.console/tools/docfx.exe"
92+
script:
93+
- $DOCFX_TOOL metadata docs/docfx.json
94+
- $DOCFX_TOOL build docs/docfx.json
8395
deploy:
8496
- provider: releases
8597
skip_cleanup: true
@@ -186,3 +198,13 @@ deploy:
186198
repo: FabianTerhorst/coreclr-module
187199
condition: "$DOTNET_BETA = true"
188200
tags: true
201+
- provider: pages
202+
skip-cleanup: true
203+
github-token: $GITHUB_TOKEN
204+
repo: coreclr-module/fabianterhorst.github.io
205+
target-branch: master
206+
local-dir: docs/_site
207+
keep-history: true
208+
on:
209+
condition: "$DOCS = true"
210+
branch: master

0 commit comments

Comments
 (0)