Skip to content

Commit b43541b

Browse files
committed
add site deploy action
1 parent 498163a commit b43541b

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/Deploy.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-deploy:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Install Julia
20+
uses: julia-actions/setup-julia@latest
21+
- name: Build Package
22+
uses: julia-actions/julia-buildpkg@v1
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 18
27+
- name: Run JS Code
28+
run: |
29+
mkdir _css
30+
npm install
31+
node ./utils/js/compile_sass.js
32+
node ./utils/js/generate_jdenticons.js
33+
- name: Build Franklin Site
34+
shell: julia --project=./ {0}
35+
run: |
36+
using Pkg
37+
Pkg.instantiate()
38+
using Franklin
39+
optimize(minify=false, prerender=false)
40+
- name: Build and Deploy
41+
uses: JamesIves/github-pages-deploy-action@releases/v3
42+
with:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
BRANCH: gh-pages
45+
FOLDER: ./__site

0 commit comments

Comments
 (0)