@@ -25,18 +25,62 @@ jobs:
2525 with :
2626 repository : giellalt/giellalt.github.io
2727
28+ - name : Install realpath
29+ run : |
30+ which realpath
31+
32+ - name : Setup Node.js for Slidev
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : ' 20'
36+
37+ - name : Install Slidev and dependencies
38+ run : |
39+ npm install -g @slidev/cli
40+ npm install -g @slidev/theme-default
41+ npm install -g @slidev/theme-seriph
42+ npm install -g playwright-chromium
43+
2844 - name : Setup Ruby
2945 uses : ruby/setup-ruby@v1
3046 with :
3147 ruby-version : ' 3.1'
3248 bundler-cache : true
3349
50+ - name : Build Slidev presentations
51+ env :
52+ CI : true
53+ NODE_ENV : production
54+ run : |
55+ chmod +x build-slidev.sh
56+ ./build-slidev.sh
57+
3458 - name : Build Jekyll site
3559 env :
3660 JEKYLL_GITHUB_TOKEN : ${{ secrets.GIELLALT_DOCS_GH_TOKEN }}
3761 run : |
3862 bundle exec jekyll build
3963
64+ - name : Copy Slidev presentations to _site
65+ run : |
66+ echo "=== Copying Slidev presentations to _site ==="
67+ find . -type d -name "*-slidev" -not -path "./_site/*" -not -path "./node_modules/*" -not -path "./.git/*" | while read -r slidev_dir; do
68+ if [ -f "$slidev_dir/index.html" ]; then
69+ target_dir="_site/$slidev_dir"
70+ mkdir -p "$(dirname "$target_dir")"
71+ cp -r "$slidev_dir" "$(dirname "$target_dir")/"
72+ echo "Copied $slidev_dir to $target_dir"
73+ fi
74+ done
75+ echo "=== Verifying Slidev presentations in _site ==="
76+ find _site -type d -name "*-slidev" | while read -r dir; do
77+ if [ -f "$dir/index.html" ]; then
78+ echo "✓ Found $dir/index.html"
79+ else
80+ echo "✗ Missing index.html in $dir"
81+ fi
82+ done
83+
4084 - name : Upload artifact
4185 uses : actions/upload-pages-artifact@v5
4286 with :
0 commit comments