Skip to content

Commit

Permalink
Fix docs CI to match changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Feb 29, 2024
1 parent a689939 commit 7c5be89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/nmodl-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,24 @@ jobs:
pip3 install -U pip setuptools 'pip-tools>=7.4.0'
pip3 install --user -r <(pip-compile --all-build-deps --all-extras --no-strip-extras 2>&1)
# This step will set up an SSH connection on tmate.io for live debugging.
# To trigger it, simply add 'live-debug-docs' to your last pushed commit message.
- name: live debug session on failure
if: failure() && contains(github.event.head_commit.message, 'live-debug-docs')
uses: mxschmitt/action-tmate@v3

- name: Documentation
id: documentation
working-directory: ${{runner.workspace}}/nmodl
run: |
echo "------- Build Documentation -------";
# build wheel and install it
pip wheel . --wheel-dir wheelhouse/ -C build-dir=_build --no-deps
pip install wheelhouse/*.whl
bash docs/generate_docs.sh
bash docs/generate_docs.sh _build $(command -v python${PYTHON_VERSION})
touch public/.nojekyll
echo "<meta http-equiv=\"refresh\" content=\"0; url=./html/index.html\" />" > public/index.html;
echo "status=done" >> $GITHUB_OUTPUT
env:
CCACHE_DIR: ${{runner.workspace}}/ccache

# This step will set up an SSH connection on tmate.io for live debugging.
# To trigger it, simply add 'live-debug-docs' to your last pushed commit message.
- name: live debug session on failure
if: failure() && contains(github.event.head_commit.message, 'live-debug-docs')
uses: mxschmitt/action-tmate@v3

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
if: steps.documentation.outputs.status == 'done' && startsWith(github.ref, 'refs/heads/master')
Expand Down
1 change: 1 addition & 0 deletions docs/generate_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ then
$(command -v python3) -m venv "${venv_name}"
. "${venv_name}/bin/activate"
python_exe="$(command -v python)"
${python_exe} -m pip install -U pip
else
python_exe="$(command -v python3)"
fi
Expand Down

0 comments on commit 7c5be89

Please sign in to comment.