Merge pull request #385 from theislab/publ_doc #953
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
name: Build Documentation | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
name: Check out source-code repository | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
- name: Install pandoc | |
run: | | |
sudo apt install pandoc | |
- name: Install pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install doc dependencies | |
run: | | |
pip install -r docs/requirements.txt | |
- name: Build docs | |
run: | | |
cd docs | |
make html | |
- name: Deploy | |
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'}} | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html |