This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
π Trigger updates. #44
This file contains 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: Website Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
- name: ποΈ python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: β¬οΈ Python PDM | |
uses: pdm-project/setup-pdm@v3 | |
- name: β¬οΈ Python Dependencies | |
run: pdm install | |
- name: π Activate environment | |
run: echo "$(pdm venv --path in-project)/bin" >> $GITHUB_PATH | |
- name: πΊπΈ Build English version of the book | |
run: jupyter-book build book | |
- name: πΊπΈ Deploy English book | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: ./book/_build/html | |
git-config-name: "github-actions[bot]" | |
git-config-email: "github-actions[bot]@users.noreply.github.com" | |
commit-message: π Book deployed |