gha: build man pages

This commit is contained in:
Fernando Ayats 2022-08-21 10:30:22 +02:00
parent 9513031da3
commit aaba11b7a2
2 changed files with 28 additions and 2 deletions

26
.github/workflows/man-update.yaml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Build man pages
on:
workflow_dispatch:
push:
paths:
- docs/**
jobs:
main:
name: Build man pages
runs-on: ubuntu-latest
steps:
- name: Install deps
run: sudo apt install pandoc
- name: Clone repository
uses: actions/checkout@v3
# Not needed
# with:
# submodules: recursive
- name: Build man pages
run: make man
- uses: stefanzweifel/git-auto-commit-action@v4
name: Commit
with:
commit_message: "[gha] build man pages"

View file

@ -167,7 +167,7 @@ man:
--variable=date:"${DATE}" \
--variable=section:1 \
--from rst \
--to man | gzip -c > /usr/share/man/man1/Hyprland.1.gz
--to man > ./docs/Hyprland.1
pandoc ./docs/hyprctl.1.rst \
--standalone \
@ -175,4 +175,4 @@ man:
--variable=date:"${DATE}" \
--variable=section:1 \
--from rst \
--to man | gzip -c > /usr/share/man/man1/hyprctl.1.gz
--to man > ./docs/hyprctl.1