Skip to content

Commit

Permalink
Added docs to CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerv committed Oct 26, 2023
1 parent ce5629f commit 477c8bc
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,55 @@ jobs:
- name: Test with pytest
run: |
pytest
docs:
runs-on: ubuntu-latest
container:
image: python:3.9

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Build Docs
run: |
python -mpip install .
python -mpip install Sphinx pydata-sphinx-theme sphinx_design numpydoc sphinx_copybutton
cd doc
make clean
make html
mkdir -p ../public
mv _build/html/* ../public/
- name: Upload Public as Artifact
uses: actions/upload-artifact@v2
with:
name: public
path: public


pages:
runs-on: ubuntu-latest
needs: docs

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Download Public Artifacts
uses: actions/download-artifact@v2
with:
name: public
path: ./public

- name: List directory after downloading artifact
run: |
ls -al
ls -al ./public
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

0 comments on commit 477c8bc

Please sign in to comment.