Bump actions/checkout from 4.1.2 to 4.1.4 (#806) #409
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: Rebuild gh-pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/cache@v4 | |
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.11' | |
- 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 }} |