Skip to content

Commit ae92296

Browse files
committed
Modifica
1 parent 4e48b04 commit ae92296

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Deploy Jekyll (with plugins)
22

33
on:
44
push:
5-
branches: [ master ] # usa master; aggiungi 'main' se ne usi due
5+
branches: [ master ]
66
paths:
77
- '**.md'
88
- '**.html'
@@ -35,12 +35,32 @@ jobs:
3535
- uses: actions/checkout@v4
3636
with:
3737
fetch-depth: 1
38+
39+
# 1) Dipendenze di sistema per immagini e (opzionale) pandoc
40+
- name: Install system deps (ImageMagick, WebP, Pandoc)
41+
run: |
42+
sudo apt-get update
43+
sudo apt-get install -y imagemagick webp pandoc
44+
45+
# 2) Python + Jupyter per convertire i notebook .ipynb
46+
- name: Setup Python
47+
uses: actions/setup-python@v5
48+
with:
49+
python-version: '3.11'
50+
- name: Install Jupyter
51+
run: |
52+
python -m pip install --upgrade pip
53+
python -m pip install jupyter nbconvert
54+
55+
# 3) Jekyll + plugin Ruby
3856
- uses: ruby/setup-ruby@v1
3957
with:
4058
ruby-version: '3.2'
4159
bundler-cache: true
60+
4261
- run: bundle install --jobs 4 --retry 3
4362
- run: bundle exec jekyll build --trace
63+
4464
- uses: actions/upload-pages-artifact@v3
4565
with:
4666
path: ./_site

0 commit comments

Comments
 (0)