/mkdocs-ghpages-docker-action

GitHub Actions that uses Docker to perform MkDocs Updates to GitHub Pages

Primary LanguageShellApache License 2.0Apache-2.0

mkdocs-ghpages-docker-action

A GitHub Action for the deployment of static HTML pages generated by MkDocs to GitHub Pages.

Assumption

  1. MkDocs is being used to generate documentation in a collaborative development environment where pull-requests are being used.
  2. The MkDocs development environment is configured with WeasyPrint dependencies.
  3. The desired continuous development process is for all merged pull-request events to trigger the generation of a mkdocs gh-deploy process within the upstream repo.

remote-upstream

Problem

The mkdocs gh-deploy process is used by a developer to push new documentation from the Local Machine to the Origin repo. If that origin us a Fork of an Upstream repo the developer must submit a pull-requests to update the code on the master branch. Since the developer can not and should not push to the upstream gh-pages branch, a process is required perform an upstream build and deploy of GitHub Pages.

Solution

Use a combination of GitHub Actions and GitHub Workflows to trigger a Docker based GitHub Action to perform a remote virtual build and deploy process once a pull-requests is approved and merged.

Dependencies

Action Details

Inputs

None

Outputs

None

Secrets

Environment Variables

None

Example usage

uses: actions/mkdocs-ghpages-docker-action@master

Acknowledgements

This GitHub Action is based on the Deploy MkDocs Action contributed by Michael Hausenblas.