Skip to content

[pre-commit.ci] pre-commit autoupdate (#180) #257

[pre-commit.ci] pre-commit autoupdate (#180)

[pre-commit.ci] pre-commit autoupdate (#180) #257

Workflow file for this run

name: deploy book
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-book:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
# Checks that the schemas are valid
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -r requirements.txt
- name: Python info
run: |
python --version
pip list
- name: Build Book
run: |
make all
- name: Deploy book on push
if: ${{ success() && github.event_name == 'push' }}
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./brainhack_book/_build/html