-
Notifications
You must be signed in to change notification settings - Fork 503
48 lines (42 loc) · 1.04 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build documentation
on:
pull_request:
push:
branches:
- main
tags:
- v*
jobs:
build-html-man-pdf:
runs-on: ubuntu-latest
name: Build documentation
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build
uses: docker://ghcr.io/kastelo/sphinx-build
with:
entrypoint: make
args: html man latexpdf
- name: Archive artifacts (html)
uses: actions/upload-artifact@v2
if: github.event_name == 'push'
with:
name: html
path: _build/html
retention-days: 14
- name: Archive artifacts (man)
uses: actions/upload-artifact@v2
if: github.event_name == 'push'
with:
name: man
path: _build/man
retention-days: 14
- name: Archive artifacts (pdf)
uses: actions/upload-artifact@v2
if: github.event_name == 'push'
with:
name: pdf
path: _build/latex/*.pdf
retention-days: 14