Merge pull request #3 from pnavaro/dependabot/github_actions/actions/… #33
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: book | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install pandoc | |
| run: | | |
| sudo apt-get -yq update | |
| sudo apt-get install -yq pandoc texlive-xetex texlive-fonts-extra gfortran ffmpeg | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniconda-version: "latest" | |
| - name: Install dependencies | |
| shell: bash -l {0} | |
| run: | | |
| conda env create -f environment.yml -n runenv | |
| conda run -n runenv python -m ipykernel install --user --name python3 | |
| - name: Build the book | |
| shell: bash -l {0} | |
| run: conda run -n runenv jupyter-book build notebooks | |
| - name: GitHub Pages action | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./notebooks/_build/html |