-
Notifications
You must be signed in to change notification settings - Fork 75
46 lines (40 loc) · 1.08 KB
/
DeployPage.yml
File metadata and controls
46 lines (40 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: build site
on:
push:
branches:
- main
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1
- name: Cache Julia artifacts & such
uses: julia-actions/cache@v1
with:
cache-registries: "true"
- name: Franklin
run: julia -e '
using Pkg;
Pkg.add([
Pkg.PackageSpec(name="NodeJS", version="1.1.1"),
Pkg.PackageSpec(name="JSON", version="0.21.1"),
Pkg.PackageSpec(name="Franklin", version="0.10.28"),
]);
using NodeJS;
"== Run Franklin ==";
cd("website");
run(`$(npm_cmd()) install highlight.js`);
using Franklin;
optimize(;minify=false);'
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: website/__site