-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.05 KB
/
build-html-and-deploy.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
name: Build HTML and Deploy to GH-PAGES
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- master
- feature/*
jobs:
build-html-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install jupyter_book
shell: bash -l {0}
run: pip install git+https://github.com/ExecutableBookProject/jupyter-book.git@master
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build IBook
shell: bash -l {0}
run: jb build ibook/
- name: Add adsense
shell: bash -l {0}
run: chmod +x scripts/insert_adsense.sh && scripts/insert_adsense.sh
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ibook/_build/html