File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - main
7+ jobs :
8+ build-and-deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2
13+ with :
14+ persist-credentials : false
15+ # NOTE: Python is necessary for the pre-rendering (minification) step
16+ - name : Install python
17+ uses : actions/setup-python@v2
18+ with :
19+ python-version : ' 3.8'
20+ # NOTE: Here you can install dependencies such as matplotlib if you use
21+ # packages such as PyPlot.
22+ # - run: pip install matplotlib
23+ - name : Install Julia
24+ uses : julia-actions/setup-julia@v1
25+ # NOTE
26+ # The steps below ensure that NodeJS and Franklin are loaded then it
27+ # installs highlight.js which is needed for the prerendering step
28+ # (code highlighting + katex prerendering).
29+ # Then the environment is activated and instantiated to install all
30+ # Julia packages which may be required to successfully build your site.
31+ # The last line should be `optimize()` though you may want to give it
32+ # specific arguments, see the documentation or ?optimize in the REPL.
33+ - run : julia -e '
34+ using Pkg; Pkg.add(["NodeJS", "Franklin"]);
35+ using NodeJS; run(`$(npm_cmd()) install highlight.js`);
36+ using Franklin;
37+ Pkg.activate("."); Pkg.instantiate();
38+ optimize()'
39+ - name : Build and Deploy
40+ uses : JamesIves/github-pages-deploy-action@releases/v3
41+ with :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ BRANCH : gh-pages
44+ FOLDER : __site
You can’t perform that action at this time.
0 commit comments