name: Publish docs via GitHub Pages
on:
  push:
    branches:
      - "master"
      - "dev"

jobs:
  build:
    name: Deploy docs
    runs-on: ubuntu-latest
    steps:
      - name: Checkout master
        uses: actions/checkout@v4
        with:
          ref: master
      - name: Deploy docs
        uses: mhausenblas/mkdocs-deploy-gh-pages@master
        # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
        env:
          PERSONAL_TOKEN: ${{ secrets.MINERU_DOCS }}
          REQUIREMENTS: /docs/requirements.txt
