Skip to content

Add Github action to deploy mkdocs to gh-pages #1

Add Github action to deploy mkdocs to gh-pages

Add Github action to deploy mkdocs to gh-pages #1

name: deploy_gh_pages_mkdocs
on:
push:
branches:
- mkdocs
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Get Python and Git
run: |
apt update && apt install python3 git
- name: Get mkdocs
run: |
pip install mkdocs
- name: Clone and Checkout repository
run: |
git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/TurnBasedMinecraftMod.git TBMM
cd TBMM && git checkout mkdocs
- name: Publish with mkdocs
run: |
cd TBMM/tbmm-docs && mkdocs gh-deploy