Skip to content

build(deps): bump types-pyyaml from 6.0.12.2 to 6.0.12.20240311 #317

build(deps): bump types-pyyaml from 6.0.12.2 to 6.0.12.20240311

build(deps): bump types-pyyaml from 6.0.12.2 to 6.0.12.20240311 #317

Workflow file for this run

name: Documentation
on:
pull_request:
branches: [master]
push:
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y \
libgirepository1.0-dev \
libgtk-3-dev \
libmpv-dev
pip install -r dev-requirements.txt
- name: Install sublime_music
run: pip install -e .
- name: Build documentation
run: cd docs && make html
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v2.0.0
with:
path: docs/_build/html
deploy-docs:
# Add a dependency to the build job
needs: build-docs
if: github.ref == 'refs/heads/master'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2