Update build option based on deprecation warning. #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Doc | |
on: [push, pull_request] | |
jobs: | |
build_doc: | |
name: Build docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install dev requirements | |
run: sudo apt install python3-pyaudio | |
- name: Install doc requirements | |
run: python -m pip install -r doc/requirements.txt | |
- name: Local install of module | |
run: python -m pip install . | |
- name: Build docs | |
run: cd doc && make html | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./doc/build/html/ | |
deploy: | |
needs: build_doc | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy github-pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |