Skip to content

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

License

Notifications You must be signed in to change notification settings

vinomaster/mkdocs-ghpages-docker-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published