-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/devel' into pybind11/type_caster
- Loading branch information
Showing
60 changed files
with
3,429 additions
and
3,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
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: | ||
mamba-version: "*" | ||
channels: conda-forge | ||
channel-priority: true | ||
|
||
- 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 toml pygments docutils jinja2 | ||
- name: Fetch m.css | ||
shell: bash -l {0} | ||
run: | | ||
# Use an unofficial version of m.css because of https://github.com/mosra/m.css/pull/189 | ||
cd ${GITHUB_WORKSPACE} | ||
git clone https://github.com/crisluengo/m.css.git | ||
cd m.css | ||
git checkout fix-class-parsed-as-function | ||
- 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 |
Oops, something went wrong.