diff --git a/.github/workflows/sphinx_build.yml b/.github/workflows/sphinx_build.yml index 2a8fa14..e7ed7b7 100644 --- a/.github/workflows/sphinx_build.yml +++ b/.github/workflows/sphinx_build.yml @@ -11,15 +11,27 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "sphinx_docs_build/" - build-command: "pip --disable-pip-version-check list --outdated --format=json | \ - python3 -c 'import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))' | \ - xargs -n1 pip install -U; make html" + - name: Check out repository code + uses: actions/checkout@v4 - - uses: actions/upload-artifact@v3 - with: - name: DocumentationHTML - path: docs/ \ No newline at end of file + - name: Set up Python 3.10 env for sphinx... + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install python3 requirements... + uses: knicknic/os-specific-run@v1.0.4 + with: + linux: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/ ; + python -m pip install --upgrade wheel ; + python -m pip install --upgrade setuptools ; + python -m pip install --upgrade pip ; + - uses: ammaraskar/sphinx-action@master + with: + docs-folder: "sphinx_docs_build/" + build-command: "make html" + + - uses: actions/upload-artifact@v3 + with: + name: DocumentationHTML + path: docs/ \ No newline at end of file