-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 982 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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