| 1 |
name: pages |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- master |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: read |
| 10 |
|
| 11 |
env: |
| 12 |
UBUNTU_PACKAGES: libgudev-1.0-dev libxml++2.6-dev valgrind tree python3-pip python3-setuptools libevdev-dev doxygen |
| 13 |
PIP_PACKAGES: meson ninja libevdev pyudev pytest yq |
| 14 |
|
| 15 |
jobs: |
| 16 |
deploy: |
| 17 |
runs-on: ubuntu-24.04 |
| 18 |
permissions: |
| 19 |
contents: write |
| 20 |
steps: |
| 21 |
- uses: actions/checkout@v4 |
| 22 |
- uses: ./.github/actions/pkginstall |
| 23 |
with: |
| 24 |
apt: $UBUNTU_PACKAGES |
| 25 |
|
| 26 |
- uses: actions/setup-python@v5 |
| 27 |
with: |
| 28 |
python-version: '3.12' |
| 29 |
- uses: ./.github/actions/pkginstall |
| 30 |
with: |
| 31 |
apt: $UBUNTU_PACKAGES |
| 32 |
pip: $PIP_PACKAGES |
| 33 |
- name: meson test ${{matrix.meson_options}} |
| 34 |
uses: ./.github/actions/meson |
| 35 |
with: |
| 36 |
meson_args: -Ddocumentation=enabled |
| 37 |
meson_skip_test: yes |
| 38 |
- name: Deploy to GitHub Pages |
| 39 |
uses: peaceiris/actions-gh-pages@v3 |
| 40 |
with: |
| 41 |
github_token: ${{ secrets.GITHUB_TOKEN }} |
| 42 |
publish_dir: ./builddir/html/ |
| 43 |
allow_empty_commit: true |