Add Binder in README.md
#31
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: Deploy Jupyter Book | |
| on: | |
| push: | |
| branches: | |
| - mekong_usecase | |
| workflow_dispatch: | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install jupyter-book ghp-import | |
| - name: Install notebook dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Clean the book build | |
| run: | | |
| jupyter-book clean docs/ | |
| - name: Build the book | |
| run: | | |
| jupyter-book build docs/ | |
| - name: Deploy to GitHub Pages | |
| run: | | |
| ghp-import -n -p -f docs/_build/html |