-
Notifications
You must be signed in to change notification settings - Fork 4
/
deploy.jl
24 lines (23 loc) · 817 Bytes
/
deploy.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Documenter
# https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
if get(ENV, "TRAVIS", "") != "true"
# Don't do anything outside Travis CI
elseif get(ENV, "CI_GROUP", "") != "docs"
@info("Skipping deploy since CI_GROUP != docs.")
elseif startswith(get(ENV, "TRAVIS_BRANCH", ""), "pre/")
# For branches pre/*, deploy them into gh-pages.pre.
branch = ENV["TRAVIS_BRANCH"]
deploydocs(
deps = Deps.pip("mkdocs", "python-markdown-math"),
repo = "github.com/tkf/Bifurcations.jl.git",
julia = "1.0",
branch = "gh-pages.pre",
latest = branch,
)
else
deploydocs(
deps = Deps.pip("mkdocs", "python-markdown-math"),
repo = "github.com/tkf/Bifurcations.jl.git",
julia = "1.0",
)
end