Skip to content

Add mkdocs pipeline for nested readmes #5

Add mkdocs pipeline for nested readmes

Add mkdocs pipeline for nested readmes #5

name: Deploy MkDocs to GitHub Pages
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install mkdocs mkdocs-material mkdocs-awesome-pages-plugin
- name: Copy all to docs folder
run: mkdir -p docs && cp -r !(.github|docs) . ./docs/
- name: Build and Deploy
run: mkdocs gh-deploy --force --config-file .github/mkdocs.yaml