d058ae5fcee313f0f17a60d36a54a2f8502caf64
[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 env:
11 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12
13 jobs:
14 publish:
15 runs-on: ubuntu-20.04
16 steps:
17 - uses: actions/checkout@v2
18 - name: Install dependencies
19 run: |
20 sudo apt-get install -y \
21 python3-sphinx \
22 python3-sphinx-rtd-theme
23 - name: Configure
24 run: |
25 cmake -DBUILD_DOCSONLY=ON -DBUILD_DOCS_HTML=ON -DBUILD_DOCS_MAN=OFF -S . -B build
26 - name: Build
27 run: |
28 make -C build html
29 - uses: crazy-max/ghaction-github-pages@v2
30 if: success()
31 with:
32 jekyll: false
33 keep_history: true
34 allow_empty_commit: false
35 build_dir: build/docs/html
36 commit_message: |
37 ${{ github.event.push.pusher }} pushed the following commits:\
38 \
39 ${{ join(github.event.push.commits.*.message, '\n\n') }}\
40 \
41 ${{ github.event.push.compare }}