-
Notifications
You must be signed in to change notification settings - Fork 129
54 lines (46 loc) · 1.18 KB
/
docs.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
46
47
48
49
50
51
52
name: Docs
on: [push, pull_request]
jobs:
docs:
name: Docs
runs-on: ubuntu-latest
strategy:
fail-fast: true
container: osgeo/proj-docs
steps:
- uses: actions/checkout@v2
- name: Print versions
shell: bash -l {0}
run: |
python3 --version
sphinx-build --version
- name: Lint .rst files
shell: bash -l {0}
run: |
if find . -name '*.rst' | xargs grep -P '\t'; then echo 'Tabs are bad, please use four spaces in .rst files.'; false; fi
working-directory: ./doc
- name: HTML
shell: bash -l {0}
run: |
make html
working-directory: ./doc
- name: PDF
shell: bash -l {0}
run: |
make latexpdf
working-directory: ./doc
- uses: actions/upload-artifact@v2
with:
name: PDF
path: doc/build/latex/Entwine.pdf
- uses: actions/upload-artifact@v2
with:
name: HTML
path: doc/build/html/*
- name: Deploy docs
env:
API_TOKEN_GITHUB: ${{ secrets.DOCS_SECRET_KEY}}
shell: bash -l {0}
if: contains(github.ref, '2.2-maintenance')
run: |
./scripts/ci/docs/deploy_website.sh