Skip to content

Commit e517e3c

Browse files
committed
bugfix gh pages script
1 parent aa9663d commit e517e3c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/pluto-to-gh-pages.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Build & deploy Pluto notebooks to GitHub Pages
21
name: Build & deploy Pluto notebooks
3-
42
on:
53
push:
64
branches: [ main ]
@@ -22,18 +20,17 @@ jobs:
2220
- name: Setup Julia
2321
uses: julia-actions/setup-julia@v1
2422
with:
25-
version: '1.9' # change if you need a different Julia release
23+
version: '1.11.4'
2624

2725
- name: Restore project (if Project.toml exists)
2826
run: |
2927
if [ -f Project.toml ]; then
30-
julia -e 'import Pkg; Pkg.activate("."); Pkg.instantiate()'
28+
julia --project=. -e 'import Pkg; Pkg.instantiate(); Pkg.precompile()'
3129
else
3230
echo "No Project.toml found — workflow will install exporter package temporarily."
3331
fi
3432
3533
- name: Export Pluto notebooks to HTML
36-
# runs the export script (scripts/export_pluto.jl)
3734
run: julia --project=. scripts/export_pluto.jl
3835

3936
- name: Deploy to GitHub Pages
@@ -42,5 +39,4 @@ jobs:
4239
github_token: ${{ secrets.GITHUB_TOKEN }}
4340
publish_dir: ./public
4441
publish_branch: gh-pages
45-
# optional: set a specific commit message
4642
commit_message: 'Deploy Pluto HTML via GitHub Actions'

0 commit comments

Comments
 (0)