-
Notifications
You must be signed in to change notification settings - Fork 57
31 lines (31 loc) · 987 Bytes
/
website.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
name: Mkdocs
on:
# Rebuild every day at 00:00
schedule:
- cron: '0 0 * * *'
# Or on every push as it can change output
push:
jobs:
'doc':
name: 'Update Public documentation'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: 'Setup Python 3 on runner'
uses: actions/[email protected]
with:
python-version: '3.x'
- name: 'Build mkdocs content to site folder'
run: |
pip install -r .github/requirements.txt
python .github/netdevops.py
python .github/aristanetworks.py
python .github/eosplus.py
mkdocs build -f mkdocs.yml
- name: 'Deploy last version to gh-pages'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_dir: ./site