Skip to content

Merge pull request #9 from JohanMabille/plugin_registry #50

Merge pull request #9 from JohanMabille/plugin_registry

Merge pull request #9 from JohanMabille/plugin_registry #50

Workflow file for this run

name: Build and deploy docs
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
release:
types:
- published
jobs:
docs:
strategy:
fail-fast: false
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v3
- name: Install Conda environment from environment.yml
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
init-shell: >-
bash
cache-environment: true
post-cleanup: 'all'
- name: cmake configure
shell: bash -l {0}
run: |
mkdir -p bld
cd bld
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DXPLUGIN_BUILD_TESTS=OFF \
-DXPLUGIN_BUILD_EXAMPLES= \
-DXPLUGIN_BUILD_DOCS=ON \
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
..
- name: Build docs
shell: bash -l {0}
run: |
cd bld
make docs_sphinx
# add .nojekyll file to docs folder
touch docs/html/.nojekyll
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: bld/docs/html # The folder the action should deploy.