tools: bump ruff to 0.5.7 and fix issues #2
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: Documentation | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- "**" | |
jobs: | |
documentation: | |
name: Build and deploy | |
if: github.repository == 'streamlink/streamlink' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 300 | |
- name: Fetch tags | |
run: git fetch --depth=300 origin +refs/tags/*:refs/tags/* | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install Python dependencies | |
run: > | |
python -m pip install -U | |
-e . | |
-r docs-requirements.txt | |
- name: Build | |
run: make --directory=docs html | |
- name: Deploy | |
env: | |
DOCS_DEPLOY_TOKEN: ${{ secrets.DOCS_DEPLOY_TOKEN }} | |
run: ./script/deploy-docs.sh |