-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (51 loc) · 2.11 KB
/
deploy_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
53
54
name: Deploy docs
on: push
jobs:
build-and-deploy-docs:
runs-on: ubuntu-latest
env:
project-directory: /home/runner/work/LB-analysis-framework/LB-analysis-framework
docs-directory: /home/runner/work/LB-analysis-framework/LB-analysis-framework/docs
docs-output: /home/runner/work/LB-analysis-framework/LB-analysis-framework/docs/output
docs-generator: /home/runner/work/LB-analysis-framework/LB-analysis-framework/m.css/documentation
python-version: '3.11'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.python-version }}
architecture: 'x64'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip3 install docutils jinja2 pygments
- name: Clone documentation generator
working-directory: ${{ env.project-directory }}
run: |
git clone https://github.com/mosra/m.css.git
- name: Download JSON_data_files_validator
run: |
lbaf-vt-data-files-validator-loader
- name: Build documentation
working-directory: ${{ env.docs-generator }}
run: |
python python.py ${{ env.docs-directory }}/docs_config.py
# .nojekyll file is needed for GitHub Pages to know it's getting a ready webpage
# and there is no need to generate anything
- name: Generate nojekyll file
working-directory: ${{ env.docs-output }}
run: touch .nojekyll
# This action moves the content of `generated_docs` to the `deploy-doc-site` branch
# It only runs on pushes to main and develop
- name: Deploy docs
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GH_PAT }}
branch: master
repository-name: DARMA-tasking/DARMA-tasking.github.io
target-folder: lbaf_docs
folder: ${{ env.docs-output }}
clean: true