conflicts are resolved, setup refactored, homebrew edited, macports s… #788
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |