ci: docs: make sure they are built for releases and manually
[awesomized/libmemcached] / .github / workflows / docs-publish-pages.yml
index d058ae5fcee313f0f17a60d36a54a2f8502caf64..cd5c66eb21b68814e616de5b8bc1382afe4fe939 100644 (file)
@@ -1,9 +1,13 @@
 name: docs-publish-pages
 
 on:
+  workflow_dispatch:
+  release:
+    types: [published]
   push:
     paths:
       - 'docs/**'
+      - 'ChangeLog*'
     branches:
       - v1.x
 
@@ -18,6 +22,7 @@ jobs:
       - name: Install dependencies
         run: |
           sudo apt-get install -y \
+            python3-m2r \
             python3-sphinx \
             python3-sphinx-rtd-theme
       - name: Configure
@@ -33,9 +38,3 @@ jobs:
           keep_history: true
           allow_empty_commit: false
           build_dir: build/docs/html
-          commit_message: |
-            ${{ github.event.push.pusher }} pushed the following commits:\
-            \
-            ${{ join(github.event.push.commits.*.message, '\n\n') }}\
-            \
-            ${{ github.event.push.compare }}