I want to setup a GitHub Action, which would build two things - a wiki using MkDocs and Javadoc using Gradle’s Javadoc command - and then push those towards the repository itself, so that it can then be displayed using GitHub pages.
My current workflow is setup to build the pages and all I need now is a way to push those towards the repository itself.
What would be a good way to do it?
The Workflow can be found here:
https://github.com/botblock/JavaBotBlockAPI/blob/master/.github/workflows/build_docs.yml
Other things to know:
GitHub pages is set up to take the content from the docs directory to then display. So using the gh-pages branch and maybe MkDocs’ gh-deploy command isn’t a solution for me.
Additionally do I need to build the wiki with MkDocs first before the Javadoc due to MkDocs deleting everything in the target-directory (docs folder).