Update requirements.txt and Dockerfile #51
This file contains hidden or 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: Build and deploy Github pages | |
| 'on': | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.11 | |
| - name: Install Python dependencies | |
| run: | | |
| pip3 install setuptools | |
| pip3 install sphinx sphinx-rtd-theme | |
| pip install nbsphinx | |
| sudo apt-get install -y pandoc | |
| - name: Build Sphinx Doc | |
| run: | | |
| make -C docs clean | |
| make -C docs html | |
| - name: Deploy Github Pages | |
| uses: JamesIves/[email protected] | |
| with: | |
| GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
| BRANCH: gh-pages | |
| FOLDER: docs/_build/html/ | |
| CLEAN: true |