Skip to content

documentation

documentation #50

Workflow file for this run

name: documentation
on:
workflow_run:
workflows: [tests]
types:
- completed
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
if: ${{ (github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch') && !(github.event.workflow_run.event == 'push')}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install spotiflow[docs]
- name: Sphinx build
run: |
sphinx-build docs/source docs/build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/
force_orphan: true