Skip to content

Merge pull request #10 from brain-bican/docs #10

Merge pull request #10 from brain-bican/docs

Merge pull request #10 from brain-bican/docs #10

Workflow file for this run

name: Publish mkdocs documentation
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'docs/**'
permissions:
contents: write
jobs:
build-and-publish:
name: Publish mkdocs documentation
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install --upgrade pip && pip install mkdocs mkdocs-gen-files mkdocs-material mkdocs-include-dir-to-nav
- run: pip install mkdocs-material
- name: Build MkDocs site
run: mkdocs build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site