From 0e1624cfbc81c309de4b4ec2ca064159ba95d3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= <38459088+jo-mueller@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:54:03 +0200 Subject: [PATCH] Revert "removed unused book" This reverts commit 0c5c8b59d30aaa55a2c917832f002f1b449d21f9. --- .github/workflows/build_book.yml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build_book.yml diff --git a/.github/workflows/build_book.yml b/.github/workflows/build_book.yml new file mode 100644 index 0000000..a654457 --- /dev/null +++ b/.github/workflows/build_book.yml @@ -0,0 +1,36 @@ +name: deploy-book + +# Only run this when the master branch changes +on: + push: + branches: + - master + - main + +# This job installs dependencies, build the book, and pushes it to `gh-pages` +jobs: + deploy-book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + # Install dependencies + - name: Set up Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r ./docs/requirements.txt + # Build the book + - name: Build the book + run: | + jupyter-book build docs/ + # Push the book's HTML to github-pages + - name: GitHub Pages action + uses: peaceiris/actions-gh-pages@v3.5.9 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/_build/html