mirror of
https://github.com/pyannote/pyannote-audio.git
synced 2026-11-26 17:08:33 +09:00
39 lines
982 B
YAML
39 lines
982 B
YAML
name: Documentation
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 4
|
|
matrix:
|
|
python-version: ["3.9"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install .
|
|
pip install -r doc/requirements.txt
|
|
- name: Build documentation
|
|
run: |
|
|
make --directory=doc html
|
|
touch ./doc/build/html/.nojekyll
|
|
- name: Deploy
|
|
env:
|
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
PUBLISH_BRANCH: gh-pages
|
|
PUBLISH_DIR: ./doc/build/html
|
|
SCRIPT_MODE: true
|
|
run: |
|
|
wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2/entrypoint.sh
|
|
bash ./entrypoint.sh
|