-
Notifications
You must be signed in to change notification settings - Fork 29
48 lines (41 loc) · 1.01 KB
/
deploy_book.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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@v4
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