Skip to content

Update Documentation #250

Update Documentation

Update Documentation #250

Workflow file for this run

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