-
Notifications
You must be signed in to change notification settings - Fork 4
[CI] Rework docs deployment #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
639a797
71ed6c0
83532ed
42e881c
19132f8
907b6fa
5f7621c
43a2ce4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,9 +29,13 @@ makedocs(sitename="Breeze", | |
| ] | ||
| ) | ||
|
|
||
| deploydocs(; | ||
| deploydocs( | ||
| ; | ||
| repo = "github.com/NumericalEarth/Breeze.jl", | ||
| deploy_repo = "github.com/NumericalEarth/BreezeDocumentation", | ||
| devbranch = "main", | ||
| push_preview = true, | ||
| forcepush = true | ||
| # Only push previews if all the relevant environment variables are non-empty. This is an | ||
| # attempt to work around https://github.com/JuliaDocs/Documenter.jl/issues/2048. | ||
| push_preview = all(!isempty, (get(ENV, "GITHUB_TOKEN", ""), get(ENV, "DOCUMENTER_KEY", ""))), | ||
|
Comment on lines
+37
to
+39
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd need to wait for a PR by dependabot to be sure this is working correctly, but looking at https://github.com/NumericalEarth/Breeze.jl/actions/runs/19032077021/job/54348250773?pr=61#step:5:5
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just learned about dependabot secrets, in principle we can set |
||
| forcepush = true, | ||
| ) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought, I'm not entirely sure an app is needed for this, pushing to the other repo happens via
DOCUMENTER_KEY. Let me try that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed that the app was unnecessary for this task after all. Oh well, we have it set up anyway, we can use it for something else cool!