Build & deploy slides site #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & deploy slides site | |
| # Renders every .pptx listed in events.config.json into web slides and deploys | |
| # the docs/ site straight to GitHub Pages. Nothing generated is committed back, | |
| # so local edits never conflict with the bot. Add a .pptx + a config entry and | |
| # push to publish a new event. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "**.pptx" | |
| - "events.config.json" | |
| - "build_site.py" | |
| - "docs/**" | |
| - ".github/workflows/build-pages.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deploy.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install LibreOffice, poppler & Korean fonts | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| libreoffice poppler-utils fonts-noto-cjk fonts-nanum | |
| fc-cache -f >/dev/null 2>&1 || true | |
| - name: Render slides into docs/ | |
| run: python3 build_site.py | |
| - uses: actions/configure-pages@v5 | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs | |
| - id: deploy | |
| uses: actions/deploy-pages@v4 |