-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (38 loc) · 1.11 KB
/
build-and-deploy.yml
File metadata and controls
43 lines (38 loc) · 1.11 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
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Miniconda
uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
auto-activate-base: false
miniconda-version: 'latest'
python-version: 3.7
environment-file: environment.yml
activate-environment: qe-example
- name: Install jupyter_book
shell: bash -l {0}
run: pip install git+https://github.com/ExecutableBookProject/jupyter-book.git@master
- name: Build QuantEcon Example
shell: bash -l {0}
run: jb build book/
- name: Install SSH Client 🔑
uses: webfactory/ssh-agent@v0.2.0
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
SSH: true
BRANCH: gh-pages
FOLDER: book/_build/html