1+ name : Build Project [myst]
2+ on : [push]
3+ jobs :
4+ tests :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - name : Checkout
8+ uses : actions/checkout@v2
9+ - name : Setup Anaconda
10+ uses : goanpeca/setup-miniconda@v1
11+ with :
12+ auto-update-conda : true
13+ auto-activate-base : true
14+ miniconda-version : ' latest'
15+ python-version : 3.8
16+ environment-file : environment.yml
17+ activate-environment : qe-lectures
18+ - name : Install sphinxcontrib-tomyst
19+ shell : bash -l {0}
20+ run : |
21+ git clone https://github.com/QuantEcon/sphinxcontrib-tomyst
22+ cd sphinxcontrib-tomyst && python setup.py install
23+ - name : Install quantecon-book-theme
24+ shell : bash -l {0}
25+ run : |
26+ git clone https://github.com/QuantEcon/quantecon-book-theme
27+ cd quantecon-book-theme
28+ python setup.py install
29+ - name : Install Dependencies
30+ shell : bash -l {0}
31+ run : |
32+ pip install myst-nb
33+ - name : Display Conda Environment Versions
34+ shell : bash -l {0}
35+ run : conda list
36+ - name : Display Pip Versions
37+ shell : bash -l {0}
38+ run : pip list
39+ - name : Build HTML
40+ shell : bash -l {0}
41+ run : |
42+ pwd
43+ make html
44+ - name : Preview Deploy to Netlify
45+ uses : nwtgck/actions-netlify@v1.1
46+ with :
47+ publish-dir : ' _build/html/'
48+ production-branch : master
49+ github-token : ${{ secrets.GITHUB_TOKEN }}
50+ deploy-message : " Preview Deploy from GitHub Actions"
51+ env :
52+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
53+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
0 commit comments