Workflow Overview¶
The workflow includes the following stages:
- Checkout Repository: Retrieves the latest version of the repository using the
actions/checkoutaction. - Configure GitHub Pages: Sets up GitHub Pages to deploy the documentation.
- Install Python and MkDocs: Installs Python 3.x and required MkDocs plugins.
- Build Docs: Runs
mkdocs gh-deployto build and deploy the documentation to GitHub Pages. - Triggering the Workflow: Automatically triggers when changes are pushed to the
mainbranch or when a pull request is created, ensuring the documentation is always current.
Concurrent Builds¶
GitHub Actions' concurrency feature is used to ensure only one build runs at a time. If multiple pushes occur, subsequent builds will wait until the previous one finishes.
Permissions¶
The workflow has write permissions for contents, pages, and id-token, allowing it to create and update files as needed.
Using GitHub Actions to automate the documentation process ensures it is always up-to-date, reliable, and easily accessible.