-
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (50 loc) · 1.74 KB
/
sphinx_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
49
50
51
52
53
54
55
56
57
name: "Pull Request Sphinx Docs Check"
on:
pull_request:
branches: [ main ]
release:
types: [published]
jobs:
sphinx_docs_build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python 3.11 env for sphinx...
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Build Requirements
uses: carlkidcrypto/[email protected]
with:
linux: |
sudo apt install -y libsnmp-dev g++ python3-dev doxygen;
cd /home/runner/work/ezsnmp/ezsnmp/ &&
python -m pip install . --user;
- name: Install Pip Requirements
uses: carlkidcrypto/[email protected]
with:
linux: |
cd /home/runner/work/ezsnmp/ezsnmp/sphinx_docs_build;
pip install -r requirements.txt;
- name: Run sphinx...
uses: carlkidcrypto/[email protected]
with:
linux: |
cd /home/runner/work/ezsnmp/ezsnmp/;
mkdir doxygen_docs_build;
doxygen .doxygen;
cd /home/runner/work/ezsnmp/ezsnmp/sphinx_docs_build;
mkdir source/_static;
mkdir source/_templates;
make clean && make html SPHINXOPTS="-W";
- name: Upload Release Asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /home/runner/work/ezsnmp/ezsnmp/docs/
asset_name: sphinx_documentation.zip
asset_content_type: application/zip