-
Notifications
You must be signed in to change notification settings - Fork 42
44 lines (36 loc) · 1.11 KB
/
main.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
name: Docs - Build and Deploy
on: [push, pull_request]
jobs:
build:
name: Build and deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Update repositories
run: |
sudo apt-get update
python -m pip install --upgrade pip
- name: Install dependencies
run:
pip install mkdocs-material
- name: Build MkDocs
run: |
mkdocs build
rm ping-viewer/404.html # Page is broken
- name: Htmlproofer
uses: athackst/[email protected]
if: false # Waiting for https://github.com/athackst/htmlproofer-action/issues/55 and https://github.com/athackst/htmlproofer-action/issues/54
with:
directory: "."
empty_alt_ignore: true
ignore_urls: |
https://fonts.gstatic.com
- name: Deploy documentation
if: github.ref == 'refs/heads/docs'
run:
mkdocs gh-deploy --force