gh-actions: docs: package caches seem outdated
[awesomized/libmemcached] / .github / workflows / docs-publish-pages.yml
1 name: docs-publish-pages
2
3 on:
4 workflow_dispatch:
5 release:
6 types: [published]
7 push:
8 paths:
9 - 'docs/**'
10 - 'ChangeLog*'
11 branches:
12 - v1.x
13
14 env:
15 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16
17 jobs:
18 publish:
19 runs-on: ubuntu-20.04
20 steps:
21 - uses: actions/checkout@v2
22 - name: Install dependencies
23 run: |
24 sudo apt-get update -y
25 sudo apt-get install -y \
26 python3-m2r \
27 python3-sphinx \
28 python3-sphinx-rtd-theme
29 - name: Configure
30 run: |
31 cmake -DBUILD_DOCSONLY=ON -DBUILD_DOCS_HTML=ON -DBUILD_DOCS_MAN=OFF -S . -B build
32 - name: Build
33 run: |
34 make -C build html
35 - uses: crazy-max/ghaction-github-pages@v2
36 if: success()
37 with:
38 jekyll: false
39 keep_history: true
40 allow_empty_commit: false
41 build_dir: build/docs/html