generated from ashleve/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (40 loc) · 1.48 KB
/
gh-pages.yaml
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
# Workflow name
name: "Documentation Build"
# Event that must trigger the workflow
on:
push:
branches:
- main # <- only on main branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
# Use bash instead of sh for conda activation
defaults:
run:
shell: bash -l {0}
steps:
# Checkout the repository
- name: "Checkout"
uses: actions/checkout@v4
# See https://github.com/conda-incubator/setup-miniconda#caching-environments
# See https://github.com/marketplace/actions/setup-micromamba
- name: install
uses: mamba-org/setup-micromamba@v1.4.3
with:
environment-file: environment.yml
environment-name: lidar_prod # activate the environment
cache-environment: true
cache-downloads: true
generate-run-shell: true
- name: replace BD_UNI credentials
run: cp configs/bd_uni_connection_params/credentials_template.yaml configs/bd_uni_connection_params/credentials.yaml
# 2. Sphinx part : install tool and dependencies
- name: "Build Sphinx Doc"
working-directory: ./docs/
run: make html
# 3. Déploiement sur les Github Pages
- name: "Deploy Github Pages"
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
BRANCH: gh-pages # <- Branch where generated doc files will be commited
FOLDER: ./docs/build/html/ # <- Dir where .nojekyll is created and from which to deploy github pages.