workflows: docs-publish-pages [ci skip]
[awesomized/libmemcached] / .github / workflows / docs-publish-pages.yml
1 name: docs-publish-pages
2
3 on:
4 push:
5 paths:
6 - 'docs/**'
7 branches:
8 - v1.x
9
10 jobs:
11 publish:
12 runs-on: ubuntu-20.04
13 steps:
14 - uses: actions/checkout@v2
15 - name: Install dependencies
16 run: |
17 sudo apt-get install -y \
18 python3-sphinx \
19 python3-sphinx-rtd-theme
20 - name: Configure
21 run: |
22 cmake -DBUILD_DOCSONLY=ON -DBUILD_DOCS_MAN=OFF -S . -B build
23 - name: Build
24 run: |
25 make -C build html
26 - uses: crazy-max/ghaction-github-pages@v2
27 if: success()
28 with:
29 jekyll: false
30 keep_history: true
31 allow_empty_commit: false
32 build_dir: build/docs/html
33 commit_message: |
34 ${{ github.event.push.pusher }} pushed to following commits:\
35 \
36 ${{ join(github.event.push.commits.*.message, '\n\n') }}\
37 \
38 ${{ github.event.push.compare }}