Skip to content

Update tests.yml

Update tests.yml #36

Workflow file for this run

name: docs
on:
push:
branches: [master, main]
#pull_request: TODO: Enable me
# branches:[master, main]
jobs:
tests:
name: "Build docs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
id: setup_python
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: vplanet
environment-file: environment.yml
- name: Install
id: install
if: steps.setup_python.outcome == 'success'
shell: bash -l {0}
run: |
sudo apt-get install -y doxygen
sudo apt-get install -y doxygen-doc
python -m pip install -U pip
python -m pip install -e .
- name: Build
id: build
if: steps.install.outcome == 'success'
shell: bash -l {0}
run: |
cd docs
make html
cp sphinx_rtd_theme/static/css/theme.css _build/html/_static/css/theme.css
touch _build/html/.nojekyll
- name: Publish
uses: JamesIves/[email protected]
# NOTE: Triggered only when the PR is *merged* (event_name == 'push')
if: steps.build.outcome == 'success' && github.event_name == 'push'
with:
branch: gh-pages
folder: docs/_build/html