Merge pull request #22 from Ananthakrishnan12/main #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Documentation | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install MkDocs | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install stylepy mkdocs mkdocs-material mkdocs-gen-nav-plugin mkdocs-awesome-pages-plugin pymdown-extensions mkdocstrings | |
- name: Generate Documentation | |
run: | | |
chmod +x ./generate_docs.sh | |
./generate_docs.sh | |
- name: Build MkDocs Site | |
run: | | |
mkdocs build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site # Publish from the site generated by MkDocs | |
keep_files: true |