Skip to content

update docs.yml

update docs.yml #129

Workflow file for this run

name: API
# build the documentation whenever there are new commits affecting documentation
on:
push:
branches:
- main
paths:
- '**/conf.py'
- '**.yml'
- '**.rst'
permissions:
contents: read
pages: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx myst_parser pytest pybedtools pysam numpy scipy pandas pyBigWig matplotlib deeptools ortools rocco
- name: Sphinx build
run: |
sphinx-build docs docs/build_
- uses: actions/upload-pages-artifact@v1
with:
path: docs/build_/
deploy:
needs: docs
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v2