-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) Β· 1.34 KB
/
documentation.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
name: Build documentation and Deploy
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
- name: Install python π
uses: actions/setup-python@v3
- name: Install GDAL π₯
run: |
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install gdal-bin libgdal-dev
- name: Install rasterio
run: pip install rasterio==1.3a3
- name: Install module dependencies π§±
run: pip install -r ./src/requirements.txt
- name: Install pdoc π§
run: pip install pdoc
- name: Build documentation π
run: pdoc -d google ./src/**/*.py ./src/*.py --logo https://www.utc.fr/wp-content/uploads/sites/28/2019/05/SU-UTC18-70.svg --favicon https://www.utc.fr/favicon.ico --footer-text "Feature Selection Module" -o ./docs
- name: Deploy π
uses: JamesIves/[email protected]
with:
branch: github-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.