Skip to content

Commit 25bf463

Browse files
committed
only push previes if possible
1 parent 5e63740 commit 25bf463

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/make.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,7 @@ makedocs(modules = [RootedTrees],
7474

7575
deploydocs(repo = "github.com/SciML/RootedTrees.jl",
7676
devbranch = "main",
77-
push_preview = true)
77+
# Only push previews if all the relevant environment variables are non-empty.
78+
push_preview = all(!isempty,
79+
(get(ENV, "GITHUB_TOKEN", ""),
80+
get(ENV, "DOCUMENTER_KEY", ""))))

0 commit comments

Comments
 (0)