-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.05 KB
/
deploy.yml
File metadata and controls
45 lines (35 loc) · 1.05 KB
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
name: Deploy Jupyter Book Automatically
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install ffmpeg
run: sudo apt-get install -y ffmpeg
- name: Install graphviz
run: sudo apt-get install -y graphviz
- name: Install Dependencies from requirements.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Clean Jupyter Book
run: jupyter-book clean .
- name: Build Jupyter Book
run: jupyter-book build .
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Publishing from main branch"
ghp-import -n -p -f _build/html -m "Deploy Jupyter Book Automatically"