ci: include scripts folder to lint ci #1546
Workflow file for this run
This file contains hidden or 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: Generate and deploy docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: ${{ github.ref_name != 'main' }} | |
| permissions: | |
| contents: read | |
| env: | |
| VAPOURSYNTH_VERSION: 72 | |
| PYTHON_VERSION: 3.14 | |
| jobs: | |
| docs-build: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| PROD: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| enable-cache: true | |
| - name: Set up VapourSynth ${{ env.VAPOURSYNTH_VERSION }} | |
| uses: Jaded-Encoding-Thaumaturgy/setup-vapoursynth@v1 | |
| with: | |
| vapoursynth-version: ${{ env.VAPOURSYNTH_VERSION }} | |
| - name: Install dependencies | |
| run: uv sync --group doc | |
| - name: Restore build cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| key: mkdocs-material-${{ hashfiles('.cache/**') }} | |
| path: .cache | |
| restore-keys: | | |
| mkdocs-material- | |
| - name: Build | |
| run: uv run mkdocs build | |
| - uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: site | |
| - name: Save build cache | |
| uses: actions/cache/save@v4 | |
| with: | |
| key: mkdocs-material-${{ hashfiles('.cache/**') }} | |
| path: .cache | |
| - name: Post webhook for failure | |
| if: failure() | |
| uses: Jaded-Encoding-Thaumaturgy/discord-failure-notifier@v1 | |
| with: | |
| webhook-url: ${{ secrets.WEBHOOK_URL }} | |
| docs-deploy: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| needs: | |
| - docs-build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| actions: read | |
| id-token: write | |
| pages: write | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |