fix typos #4
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: Build ION Documentation With Mkdocs | |
on: | |
push: | |
branches: | |
- ION-documentation # Set this to your default branch | |
paths: | |
- 'gh-pages/**' # Trigger only when changes in gh-pages directory | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' # Specify the Python version | |
- name: Install dependencies | |
run: | | |
cd gh-pages # Change to the MkDocs directory | |
python -m pip install --upgrade pip | |
pip install mkdocs | |
pip install mkdocs-material | |
- name: Build MkDocs site | |
run: | | |
cd gh-pages # Ensure we're in the right directory | |
mkdocs build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./gh-pages/site # Replace with your build directory |