]> git.mdlowis.com Git - proto/labwc.git/commitdiff
CI: automatically rebuild labwc.github.io
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 24 Feb 2023 11:56:27 +0000 (12:56 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 24 Feb 2023 12:53:10 +0000 (13:53 +0100)
.github/workflows/labwc.github.io.yml [new file with mode: 0644]

diff --git a/.github/workflows/labwc.github.io.yml b/.github/workflows/labwc.github.io.yml
new file mode 100644 (file)
index 0000000..2538c42
--- /dev/null
@@ -0,0 +1,24 @@
+# Triggers a rebuild and deploy of labwc.github.io when man pages change
+#
+# https://stackoverflow.com/a/65514259
+
+name: "labwc.github.io"
+
+on:
+  push:
+    branches:
+      - 'master'
+      - 'v0.5_disabled'
+    paths:
+      - 'docs/*.scd'
+
+jobs:
+  notify:
+    runs-on: ubuntu-latest
+    steps:
+      - name: labwc.github.io
+        env:
+          GITHUB_TOKEN: ${{ secrets.WEB_DEPLOY_TOKEN }}
+        run: |
+          gh api repos/labwc/labwc.github.io/dispatches \
+            --raw-field event_type=rebuild