Skip to content

Commit

Permalink
Add Github action to deploy mkdocs to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Seo committed Oct 29, 2024
1 parent 551b50b commit 9f4ab51
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy_gh_pages.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9f4ab51

Please sign in to comment.