File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build slides site
2+
3+ # Renders every .pptx listed in events.config.json into web slides (docs/)
4+ # so GitHub Pages can serve them. Future events: add the .pptx + a config
5+ # entry, push, and this regenerates docs/ automatically.
6+
7+ on :
8+ push :
9+ branches : [main]
10+ paths :
11+ - " **.pptx"
12+ - " events.config.json"
13+ - " build_site.py"
14+ - " docs/index.html"
15+ - " docs/viewer.html"
16+ - " docs/assets/**"
17+ - " .github/workflows/build-pages.yml"
18+ workflow_dispatch :
19+
20+ permissions :
21+ contents : write
22+
23+ concurrency :
24+ group : build-pages
25+ cancel-in-progress : true
26+
27+ jobs :
28+ build :
29+ runs-on : ubuntu-latest
30+ steps :
31+ - uses : actions/checkout@v4
32+
33+ - name : Install LibreOffice, poppler & Korean fonts
34+ run : |
35+ sudo apt-get update
36+ sudo apt-get install -y --no-install-recommends \
37+ libreoffice poppler-utils fonts-noto-cjk fonts-nanum
38+ fc-cache -f >/dev/null 2>&1 || true
39+
40+ - name : Render slides
41+ run : python3 build_site.py
42+
43+ - name : Commit regenerated slides
44+ run : |
45+ git config user.name "github-actions[bot]"
46+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
47+ git add docs
48+ if git diff --cached --quiet; then
49+ echo "No slide changes."
50+ else
51+ git commit -m "build: regenerate web slides [skip ci]"
52+ git push
53+ fi
You can’t perform that action at this time.
0 commit comments