forked from robotology/idyntree
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (63 loc) · 2.03 KB
/
gh-pages.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
60
61
62
63
64
65
66
67
68
69
70
71
72
name: gh-pages
on:
push:
branches:
- '*'
- '!gh-pages'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
- name: Dependencies [apt]
shell: bash -l {0}
run: |
# The following dependencies are not available in conda
# See: https://github.com/conda-forge/texlive-core-feedstock/issues/19
sudo apt update
sudo apt install -y xsltproc texlive ghostscript graphviz texlive-base texlive-latex-extra texlive-fonts-extra texlive-fonts-recommended flex bison
- name: Dependencies
shell: bash -l {0}
run: |
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
conda config --remove channels defaults
# Dependencies
mamba install doxygen=1.9.1 toml pygments docutils jinja2
- name: Fetch m.css
shell: bash -l {0}
run: |
cd ${GITHUB_WORKSPACE}
git clone https://github.com/mosra/m.css.git
cd m.css
git checkout 4bf4ddade48717ffabbdc6a1fd7ed15a75f9bec3
- name: Build docs
shell: bash -l {0}
run: |
cd docs
git clone https://github.com/robotology/idyntree.git
python3 ./generate_website.py --mcss_path ${GITHUB_WORKSPACE}/m.css/documentation/doxygen.py
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: site
path: docs/site
deploy:
runs-on: ubuntu-20.04
needs: [build]
if: github.ref == 'refs/heads/master'
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: site
path: site
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: site