Skip to content

Add workflow to auto deploy with mkdocs gh-deploy #1

Add workflow to auto deploy with mkdocs gh-deploy

Add workflow to auto deploy with mkdocs gh-deploy #1

Workflow file for this run

name: Deploy MkDocs Site
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install MkDocs and Deploy Dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material mkdocs-gh-deploy
- name: Deploy MkDocs Site
run: mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}