-
Notifications
You must be signed in to change notification settings - Fork 45
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
Seperate build and deploy of docs #31
Comments
You don't have to push the commit from |
I understand, but i don't know, how i pass a commit to an other job of the same github action build pipeline |
There might be an easier way than this, but at worst, you could just upload the diff of the latest commit as your artifact, and then commit/push it on your deploy job. |
Closing this; I think my comment immediately above is the best solution here, barring some major changes to how mike works. If you need some more pointers on how to get this set up, feel free to comment again though. |
Hello,
i am a user of https://github.com/squidfunk/mkdocs-material and we upgreaded to the insiders version, whitch also support mike.
Now we want to upgrade our build pipeline(GH Actions) so that it use mike for the versioning.
In the old build pipelien we we did run
mkdocs build --site-dir="../build/documentation"
and then we manualy deployed it in a seperate step to gh-pages. Now we need to runmike deploy
but then we can not seperate the building from commit and push and this is a bad behavor for our complex buildpipeline.Is there any way to split this in to seperate stages?
For more information you can also look at our build pipeline:
Building: https://github.com/BetonQuest/BetonQuest/blob/de10a21e367ce3cc4d0fb330777bf36e775ebe00/.github/workflows/build.yml#L215
Deploying: https://github.com/BetonQuest/BetonQuest/blob/master/.github/workflows/build.yml#L271
Deploy Script: https://github.com/BetonQuest/BetonQuest/blob/master/.github/scripts/mkdocs.sh
The point is that we build our project parallel with maven and mkdocs, and if both are successfull we deploy both.
For me it yould be perfect, if i can run a
mike build
command and then runmike deploy
The text was updated successfully, but these errors were encountered: