Merge pull request #692 from ScilifelabDataCentre/dev #28
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
# GitHub pages | |
# Deploys the documentation to github pages from the branch gh-pages. | |
--- | |
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
- ghp-test | |
jobs: | |
ddsclidocumentation: | |
name: Build the DDS CLI Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Make dependencies available to Docker container | |
run: | | |
cat requirements.txt requirements-dev.txt > ./docs/requirements.txt | |
- name: Build the HTML documentation | |
uses: matthiaszepper/sphinx-action-v4@latest | |
with: | |
container: latest | |
pre-build-command: "pip install ." | |
build-command: "make dirhtml" | |
docs-folder: "docs/" | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs/_build/dirhtml/ |