Skip to content

Commit

Permalink
Deploy into gh-pages.pre
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jul 1, 2018
1 parent 82c67ef commit a813946
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/make.jl
Expand Up @@ -7,7 +7,20 @@ Plots.default(dpi=15)

makedocs()

if get(ENV, "TRAVIS", "") == "true"
# https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
if get(ENV, "TRAVIS", "") != "true"
# Don't do anything outside Travis CI
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 = "0.6",
branch = "gh-pages.pre",
latest = branch,
)
else
deploydocs(
deps = Deps.pip("mkdocs", "python-markdown-math"),
repo = "github.com/tkf/Bifurcations.jl.git",
Expand Down

0 comments on commit a813946

Please sign in to comment.