Skip to content

Commit

Permalink
Allow preview docs to be pushed on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 authored Feb 9, 2020
1 parent 0b7d0a0 commit da95eb0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Pkg
Pkg.activate(@__DIR__)
CI = get(ENV, "CI", nothing) == "true"
CI = get(ENV, "CI", nothing) == "true" || get(ENV, "GITHUB_TOKEN", nothing) !== nothing
using DrWatson
using Documenter, DataFrames, Parameters, Dates, BSON, JLD2

Expand All @@ -26,6 +26,9 @@ pages = [
)

if CI
deploydocs(repo = "github.com/JuliaDynamics/DrWatson.jl.git",
target = "build")
deploydocs(
repo = "github.com/JuliaDynamics/DrWatson.jl.git",
target = "build",
push_preview = true
)
end

0 comments on commit da95eb0

Please sign in to comment.