File tree Expand file tree Collapse file tree 2 files changed +49
-3
lines changed
Expand file tree Collapse file tree 2 files changed +49
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Build Project [using jupyter-book]
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ tests :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v2
12+ - name : Set up Python
13+ uses : actions/setup-python@v2
14+ with :
15+ python-version : 3.8
16+ - name : Install Python Dependencies
17+ run : |
18+ pip install -r requirements.txt
19+ - name : Install LaTeX dependencies
20+ run : |
21+ sudo apt-get -qq update
22+ sudo apt-get install -y \
23+ texlive-latex-recommended \
24+ texlive-latex-extra \
25+ texlive-fonts-recommended \
26+ texlive-fonts-extra \
27+ texlive-xetex \
28+ latexmk \
29+ xindy
30+ - name : Set up Julia
31+ uses : julia-actions/setup-julia@v1
32+ with :
33+ version : 1.6.0
34+ - name : Install IJulia
35+ run : julia -e 'using Pkg; Pkg.add("IJulia");'
36+ shell : bash
37+ - name : Build HTML
38+ shell : bash -l {0}
39+ run : |
40+ jb build lectures --path-output ./
41+ - name : Upload the "_build" folder (cache)
42+ uses : actions/upload-artifact@v2
43+ with :
44+ name : build-cache
45+ path : _build
Original file line number Diff line number Diff line change 2424 texlive-xetex \
2525 latexmk \
2626 xindy
27- - uses : julia-actions/setup-julia@v1
27+ - name : Set up Julia
28+ uses : julia-actions/setup-julia@v1
2829 with :
2930 version : 1.6.0
3031 - run : julia -e 'using Pkg; Pkg.activate("lectures"); Pkg.instantiate(); Pkg.add("IJulia");'
@@ -61,12 +62,12 @@ jobs:
6162 name : _build
6263 path : _build
6364 - name : Preview Deploy to Netlify
64- uses : nwtgck/actions-netlify@v1.1
65+ uses : nwtgck/actions-netlify@v1.2.2
6566 with :
6667 publish-dir : ' _build/html/'
6768 production-branch : master
6869 github-token : ${{ secrets.GITHUB_TOKEN }}
6970 deploy-message : " Preview Deploy from GitHub Actions"
7071 env :
7172 NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
72- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
73+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
You can’t perform that action at this time.
0 commit comments