Skip to content

Merge pull request #28 from PyLadiesBerlin/dependabot/pip/requests-2.… #16

Merge pull request #28 from PyLadiesBerlin/dependabot/pip/requests-2.…

Merge pull request #28 from PyLadiesBerlin/dependabot/pip/requests-2.… #16

name: deploy-docs
# Only run this when the main branch changes
on:
push:
branches:
- 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@v2
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install jupyter-book
pip install sphinx-tags
- name: Build the book
run: |
rm -rf docs/_tags/*
jupyter-book build docs
- name: Push docs book HTML to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
keep_files: true