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