|
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | steps: |
11 | 11 | - name: Checkout |
12 | | - uses: actions/checkout@v2 |
| 12 | + uses: actions/checkout@v4 |
13 | 13 | with: |
14 | 14 | persist-credentials: false |
15 | | - # NOTE: Python is necessary for the pre-rendering (minification) step |
16 | 15 | - name: Install python |
17 | | - uses: actions/setup-python@v2 |
| 16 | + uses: actions/setup-python@v5 |
18 | 17 | 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 |
| 18 | + python-version: '3.11' |
23 | 19 | - name: Install Julia |
24 | | - uses: julia-actions/setup-julia@v1 |
| 20 | + uses: julia-actions/setup-julia@v2 |
25 | 21 | with: |
26 | | - version: 1.5 |
27 | | - # NOTE |
28 | | - # The steps below ensure that NodeJS and Franklin are loaded then it |
29 | | - # installs highlight.js which is needed for the prerendering step |
30 | | - # (code highlighting + katex prerendering). |
31 | | - # Then the environment is activated and instantiated to install all |
32 | | - # Julia packages which may be required to successfully build your site. |
33 | | - # The last line should be `optimize()` though you may want to give it |
34 | | - # specific arguments, see the documentation or ?optimize in the REPL. |
| 22 | + version: '1.10' |
35 | 23 | - run: julia -e ' |
36 | 24 | using Pkg; Pkg.add(["NodeJS", "Franklin"]); |
37 | 25 | using NodeJS; run(`$(npm_cmd()) install highlight.js`); |
38 | 26 | using Franklin; |
39 | 27 | Pkg.activate("."); Pkg.instantiate(); |
40 | 28 | optimize()' |
41 | 29 | - name: Build and Deploy |
42 | | - uses: JamesIves/github-pages-deploy-action@releases/v3 |
| 30 | + uses: JamesIves/github-pages-deploy-action@v4 |
43 | 31 | with: |
44 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
45 | | - BRANCH: gh-pages |
46 | | - FOLDER: __site |
| 32 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 33 | + branch: gh-pages |
| 34 | + folder: __site |
0 commit comments