Deploying to github User and Organization pages using Actions #2287
lasarojc
started this conversation in
Show and tell
Replies: 4 comments 1 reply
-
Thanks for providing the action! Could you elaborate on this example?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Sure.
There is a good explanation of the two kinds of gh projects, i.e., projects
and user/organizations here:
https://www.mkdocs.org/user-guide/deploying-your-docs/
In essence, in projects, you can save the sources to master but push the
built site to the gh-pages branch, which is what the already listed action
does.
In user/org, you need to push the built site to the master branch instead.
But, now that you made me really think about it, I guess we could just use
the original action but extended with
--remote-branch master option
Lásaro
…On Thu, Feb 11, 2021 at 9:28 AM Martin Donath ***@***.***> wrote:
Thanks for providing the action! Could you elaborate on this example?
1. What is different from the GitHub Action that is listed in the docs?
2. Are there other requirements for publishing to GitHub Pages from
organizations?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2287 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUPZ4WCRENHYE5RTXFC533S6PEPBANCNFSM4XN3XD2A>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Indeed, I just tested it and it works fine. But, hey, at least I've learned
a bit about github actions!
Lásaro
…On Thu, Feb 11, 2021 at 9:51 AM Lasaro Camargos ***@***.***> wrote:
Sure.
There is a good explanation of the two kinds of gh projects, i.e.,
projects and user/organizations here:
https://www.mkdocs.org/user-guide/deploying-your-docs/
In essence, in projects, you can save the sources to master but push the
built site to the gh-pages branch, which is what the already listed action
does.
In user/org, you need to push the built site to the master branch instead.
But, now that you made me really think about it, I guess we could just use
the original action but extended with
--remote-branch master option
Lásaro
On Thu, Feb 11, 2021 at 9:28 AM Martin Donath ***@***.***>
wrote:
> Thanks for providing the action! Could you elaborate on this example?
>
> 1. What is different from the GitHub Action that is listed in the
> docs?
> 2. Are there other requirements for publishing to GitHub Pages from
> organizations?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#2287 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAUPZ4WCRENHYE5RTXFC533S6PEPBANCNFSM4XN3XD2A>
> .
>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, I agree.
Lásaro
…On Thu, Feb 11, 2021 at 10:18 AM Martin Donath ***@***.***> wrote:
Great. I'd refer to the MkDocs documentation for deploying GitHub actions
to user/org pages. We cannot list all possible targets on the "publishing
your site" page, as keeping it concise is of great importance. However, as
you shared a recipe, users can come back to this discussion and get started
quickly 😊
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2287 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUPZ4W4PTVD5Z27R4DVHCTS6PKK7ANCNFSM4XN3XD2A>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to offer an action to publish to gh-pages User and Organization, to complement what is in mkdocs-material/docs/publishing-your-site.md. The following action is probably more convoluted than it needs to be, but is a working example. It builds when you push to the source branch and pushes the built site to the master branch, which GH will copy to ghpages and publish.
Improvements welcome.
Caveat: it does not support the draw-io-exporter plugin :(
Beta Was this translation helpful? Give feedback.
All reactions