Skip to content

Publish Docs (mkdocs)

This Action is part of the template Project nolte/cookiecutter-gh-project.

Usage

TBD

Central Configuration

The full Action configuration will be used from a central place.

name: Release Deliver Docs

on:
  workflow_call:
    inputs:
      requirements:
        description: 'path of the requirements dependencies file'
        required: false
        default: "./requirements-dev.txt"
        type: string
    secrets:
      token:
        required: true

jobs:
  publish_docs:
    name: "Publish the HTML Documentation"
    runs-on: ubuntu-latest
    steps:
      - name: Checkout master
        uses: actions/checkout@v4.2.2

      - name: Deploy docs
        uses: mhausenblas/mkdocs-deploy-gh-pages@1.26
        env:
          GITHUB_TOKEN: ${{ secrets.token  }}
          REQUIREMENTS: ${{ inputs.requirements }}
from .github/workflows/reusable-mkdocs.yaml.