File: docs.yml

package info (click to toggle)
enca 1.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,948 kB
  • sloc: ansic: 10,297; sh: 5,858; xml: 2,132; makefile: 700; perl: 261
file content (27 lines) | stat: -rw-r--r-- 842 bytes parent folder | download
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@v5
      - 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.0.0
        if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./devel-docs/html/