-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow docs to deploy on schedule events on GH Actions (#1773)
- Loading branch information
1 parent
36ae8ef
commit b6017ac
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,6 +381,24 @@ end end | |
devbranch="master", devurl="hello-world", push_preview=false) | ||
@test !d.all_ok | ||
end | ||
# Build on `schedule` jobs | ||
withenv("GITHUB_EVENT_NAME" => "schedule", | ||
"GITHUB_REPOSITORY" => "JuliaDocs/Documenter.jl", | ||
"GITHUB_REF" => "refs/tags/v1.2.3", | ||
"GITHUB_ACTOR" => "github-actions", | ||
"GITHUB_TOKEN" => "SGVsbG8sIHdvcmxkLg==", | ||
"DOCUMENTER_KEY" => nothing, | ||
) do | ||
cfg = Documenter.GitHubActions() | ||
d = Documenter.deploy_folder(cfg; repo="github.com/JuliaDocs/Documenter.jl.git", | ||
devbranch="master", devurl="dev", push_preview=true) | ||
@test d.all_ok | ||
@test d.subfolder == "v1.2.3" | ||
@test d.repo == "github.com/JuliaDocs/Documenter.jl.git" | ||
@test d.branch == "gh-pages" | ||
@test Documenter.authentication_method(cfg) === Documenter.HTTPS | ||
@test Documenter.authenticated_repo_url(cfg) === "https://github-actions:[email protected]/JuliaDocs/Documenter.jl.git" | ||
end | ||
end end | ||
|
||
@testset "Buildkite CI deploy configuration" begin; with_logger(NullLogger()) do | ||
|