Bump peaceiris/actions-gh-pages from 3.9.3 to 4.0.0 #54
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, pull_request] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update apt | |
run: sudo apt-get update | |
- name: Install apt deps | |
run: sudo apt-get install -y gtk-doc-tools | |
- name: Configure build | |
run: ./configure --enable-gtk-doc | |
- name: Build | |
run: make -j4 | |
- name: Build docs | |
run: make -C devel-docs docs | |
- name: Fixup docs | |
run: find devel-docs/html/ -type f -name '*.html' -print0 | xargs -r -0 sed -i 's@/libenca/@/doc/@' | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./devel-docs/html/ |