Skip to content

Docs workflow: Install Ubuntu packages for PyQt6 #345

Docs workflow: Install Ubuntu packages for PyQt6

Docs workflow: Install Ubuntu packages for PyQt6 #345

Workflow file for this run

name: Rebuild gh-pages
on:
push:
branches:
- master
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/cache@v3
with:
path: |
.tox
~/.cache/pip
key: "ghpages_${{ hashFiles('misc/requirements/requirements*.txt') }}_${{ hashFiles('scripts/src2rst.py') }}"
- name: Set up python
uses: actions/[email protected]
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo apt-get install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libxcb-shape0 libegl1 libxcb-cursor0
python -m pip install --upgrade pip
pip install -r misc/requirements/requirements_tox.txt
- name: Clone gh-pages branch
run:
git clone https://github.com/karlch/vimiv-qt.git gh-pages --branch gh-pages --single-branch
- name: Rebuild documentation with tox
run: |
tox -e docs -- gh-pages
- name: Commit documentation changes
run: |
cd gh-pages
git config --local user.email "[email protected]"
git config --local user.name "Christian Karl"
git add .
git commit -a -m "Automatic update of gh-pages website" -m "Caused by $(git --git-dir ../.git rev-parse HEAD)." || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}