Skip to content

Merge pull request #692 from ScilifelabDataCentre/dev #28

Merge pull request #692 from ScilifelabDataCentre/dev

Merge pull request #692 from ScilifelabDataCentre/dev #28

# 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/