diff --git a/.github/workflows/deploy_gh_pages.yml b/.github/workflows/deploy_gh_pages.yml new file mode 100644 index 0000000..a5909c4 --- /dev/null +++ b/.github/workflows/deploy_gh_pages.yml @@ -0,0 +1,24 @@ +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: | + sudo apt-get update && sudo apt-get install python3 git + - name: Get mkdocs + run: | + sudo 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