-
Notifications
You must be signed in to change notification settings - Fork 49
27 lines (25 loc) · 842 Bytes
/
Copy pathdocs.yml
File metadata and controls
27 lines (25 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Documentation
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- 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/actions-gh-pages@v4.1.0
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./devel-docs/html/