-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (35 loc) · 1.09 KB
/
ci.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
name: Documentation CI
on:
workflow_dispatch:
push:
branches:
- main
- feature/hardware-setup
pull_request:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# The branch, tag or SHA to checkout. When checking out the repository that
# triggered a workflow, this defaults to the reference or SHA for that event.
# Otherwise, uses the default branch.
# Default ''
ref: feature/hardware-setup
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# Default: 1
fetch-depth: 0
# Whether to download Git-LFS files
# Default: false
lfs: ''
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install -r requirements.txt
- name: build documentation
run: mkdocs build
- name: deploy documentation
if: ${{ github.ref == 'refs/heads/main' }}
run: mkdocs gh-deploy --force