aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFernando Ayats <[email protected]>2022-08-21 10:30:22 +0200
committerFernando Ayats <[email protected]>2022-08-21 10:33:45 +0200
commitaaba11b7a217a1c871a09d5d6f78b44fd9c5489d (patch)
tree051dbcd72d43ea517f9bdb043e4c1e8ba0532e5e
parent9513031da30861b6ab593625aebe88b811758427 (diff)
downloadHyprland-aaba11b7a217a1c871a09d5d6f78b44fd9c5489d.tar.gz
Hyprland-aaba11b7a217a1c871a09d5d6f78b44fd9c5489d.zip
gha: build man pages
-rw-r--r--.github/workflows/man-update.yaml26
-rw-r--r--Makefile4
2 files changed, 28 insertions, 2 deletions
diff --git a/.github/workflows/man-update.yaml b/.github/workflows/man-update.yaml
new file mode 100644
index 00000000..3ef5fc35
--- /dev/null
+++ b/.github/workflows/man-update.yaml
@@ -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"
diff --git a/Makefile b/Makefile
index 17163df4..f38ffc30 100644
--- a/Makefile
+++ b/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