Skip to content

Commit 235b8d9

Browse files
committed
add: workflow
1 parent 4a325bb commit 235b8d9

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/build-pages.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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

0 commit comments

Comments
 (0)