-
Notifications
You must be signed in to change notification settings - Fork 102
59 lines (51 loc) · 1.37 KB
/
sphinx.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
53
54
55
56
57
58
59
name: 'Build Sphinx Documentation'
on:
release:
types: [published]
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
services:
postgres:
image: postgis/postgis:13-3.2
env:
POSTGRES_DB: geonature2db
POSTGRES_PASSWORD: geonatpasswd
POSTGRES_USER: geonatadmin
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: lts/iron
- name: Install JS librairies
working-directory: ./frontend
run: npm install
- name: Build JS documentation
working-directory: ./frontend
run: npm run docBuild
- name: Install python dependencies
run: pip install .[docs]
- name: Build and Commit
uses: sphinx-notes/pages@v2
env:
GEONATURE_CONFIG_FILE: config/test_config.toml
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages