ci: force JS actions to Node 24 (silence Node 20 deprecation) #6
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 | |
| # JS 액션들(checkout/configure-pages/deploy-pages 등)을 Node 24로 강제해 | |
| # Node 20 deprecation 경고를 없앤다. 2026-06-16부터는 Node 24가 기본값이 된다. | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| 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 |