Update Documentation #302
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: Update Documentation | |
on: | |
schedule: | |
# Run the workflow daily at 00:00 UTC | |
- cron: '0 0 * * *' | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
- name: Update Documentation | |
env: | |
PTU_SDK_PAT: ${{ secrets.PTU_SDK_PAT }} | |
run: | | |
chmod +x ./update.sh | |
./update.sh | |
- name: Commit and push if changes | |
run: | | |
git config --global user.name 'David Cody Taupo Lingan' | |
git config --global user.email 'linganda@msu.edu' | |
git commit -am "Update documentation" || true | |
git push | |
- name: Install MkDocs | |
run: | | |
python -m pip install --upgrade pip | |
pip install mkdocs # Add MkDocs plugins if needed | |
- name: Deploy to GitHub Pages | |
run: | | |
mkdocs gh-deploy --force |