Skip to content

Commit 5d477e7

Browse files
authored
Merge branch 'main' into reports
2 parents 536525f + a706bf0 commit 5d477e7

File tree

2 files changed

+49
-3
lines changed

2 files changed

+49
-3
lines changed

.github/workflows/cache.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
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 }}

0 commit comments

Comments
 (0)