Skip to content

Commit

Permalink
added GH action for generating docs on release (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmartins authored Oct 30, 2024
1 parent 90b8269 commit b463eea
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/generate_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Sphinx docs to gh-pages
on:
release:
types: [released]
workflow_dispatch:

permissions:
contents: write
jobs:
sphinx_docs_to_gh-pages:
runs-on: ubuntu-latest
name: Sphinx docs to gh-pages
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Installing the library
shell: bash -l {0}
run: |
pip install https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp39-cp39-manylinux_2_28_x86_64.whl
python setup.py install
pip install sphinx
- name: Running Sphinx
shell: bash -l {0}
run: |
cd docs/sphinx
sphinx-apidoc -f -o source ../../ezomero test
sphinx-build -b html source ../
- name: Deploy to pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
branch: "documentation"

0 comments on commit b463eea

Please sign in to comment.