forked from mlcommons/mlcube
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 989 Bytes
/
docs-site.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
name: Build & Deploy Docs Site (on-merge)
on:
push:
paths:
- '.github/workflows/docs-site.yml'
- 'docs/**'
- 'mkdocs.yml'
jobs:
docs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Build Docs
working-directory: './'
run: |
export PYTHONPATH=$(pwd)/mlcube:${PYTHONPATH}
mkdocs build --site-dir ../site/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3.6.4
with:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ../site
allow_empty_commit: true