update_documentation #40
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: ci | |
| on: | |
| push: | |
| branches: | |
| - master | |
| repository_dispatch: | |
| types: | |
| - update_documentation | |
| jobs: | |
| build-deploy: | |
| name: Build and deploy the documentation | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - name: update submodules | |
| run: | | |
| git submodule update --remote --recursive | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y make | |
| python -m pip install -U pip | |
| pip install -r requirements.txt | |
| pip install ghp-import | |
| - name: Build | |
| run: | | |
| cd docs | |
| make html | |
| - name: Deploy on the branch gh-pages | |
| run: | | |
| ghp-import -n -f -p ./docs/_build/html | |