@@ -25,62 +25,18 @@ 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-
4428 - name : Setup Ruby
4529 uses : ruby/setup-ruby@v1
4630 with :
4731 ruby-version : ' 3.1'
4832 bundler-cache : true
4933
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-
5834 - name : Build Jekyll site
5935 env :
6036 JEKYLL_GITHUB_TOKEN : ${{ secrets.GIELLALT_DOCS_GH_TOKEN }}
6137 run : |
6238 bundle exec jekyll build
6339
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-
8440 - name : Upload artifact
8541 uses : actions/upload-pages-artifact@v5
8642 with :
0 commit comments