Skip to content

Commit 150675d

Browse files
authored
Merge pull request #55 from stackhpc/add-build-pdf-workflow
feat: add workflow for building and uploading guide as `PDF`
2 parents 800c5a5 + db89b4e commit 150675d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build_pdf.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Compile Sphinx Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: ghcr.io/sphinx-doc/sphinx-latexpdf:8.0.2
14+
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
19+
- name: Install Python dependencies
20+
run: pip3 install -r requirements.txt
21+
22+
- name: Compile Sphinx documentation
23+
run: sphinx-build -M latexpdf source/ _build
24+
25+
- name: Upload PDF Artifact
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: openstack-admin-guide.pdf
29+
path: _build/latex/openstackadministrationguide.pdf

0 commit comments

Comments
 (0)