Skip to content

Commit 5b39187

Browse files
authored
Fix doc preview for dependabot PRs (#73)
* Fix doc preview for dependabot PRs * fix parentheses * format
1 parent 9b8bfdf commit 5b39187

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

docs/make.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,12 @@ makedocs(;
9494
deploydocs(;
9595
repo = "github.com/NumericalMathematics/Ariadne.jl.git",
9696
devbranch = "main",
97-
push_preview = true,
97+
# Only push previews if all the relevant environment variables are non-empty.
98+
push_preview = all(
99+
!isempty,
100+
(
101+
get(ENV, "GITHUB_TOKEN", ""),
102+
get(ENV, "DOCUMENTER_KEY", ""),
103+
)
104+
)
98105
)

0 commit comments

Comments
 (0)