Skip to content

Merge pull request #2 from KlugerLab/doc_workflow #14

Merge pull request #2 from KlugerLab/doc_workflow

Merge pull request #2 from KlugerLab/doc_workflow #14

Workflow file for this run

# Adapted from https://coderefinery.github.io/documentation/gh_workflow/
name: documentation
on:
push:
tags:
- '*'
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r docs/requirements.txt
- name: Sphinx build
run: |
sphinx-build docs/source _build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4