mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 10:05:59 +01:00
gha: build man pages
This commit is contained in:
parent
9513031da3
commit
aaba11b7a2
2 changed files with 28 additions and 2 deletions
26
.github/workflows/man-update.yaml
vendored
Normal file
26
.github/workflows/man-update.yaml
vendored
Normal 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"
|
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue