From 261e51c57bc0e916907cb0643c07692c718e42c1 Mon Sep 17 00:00:00 2001 From: arudaev Date: Fri, 6 Nov 2026 13:45:52 +0100 Subject: [PATCH] fix(pages): publish every page, not a remembered list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The workflow copied a hand-written list of files into _site. impressum.html was added after that list was written and never joined it, so the Impressum link in the footer has been answering 404 on the live site — the one page a German site is legally required to have. The copy is a glob now, a check fails the build if a page that must exist is missing, and CNAME is copied when it is there, which is what a custom domain needs on a workflow-published site. Closes #15 --- .github/workflows/pages.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 7d100f8..66ee55c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -28,8 +28,19 @@ jobs: - name: Collect the site run: | mkdir _site - cp index.html 404.html styles.css kiosk.js robots.txt .nojekyll _site/ + # Every page, not a list someone has to remember to extend: impressum.html + # was added later and never reached the published site, so the Impressum + # link in the footer — the one page German law requires — answered 404. + cp *.html *.css *.js robots.txt .nojekyll _site/ cp -r assets _site/ + # CNAME is how a custom domain reaches a workflow-published site. It is + # absent until the apex moves, so this must not fail the build. + [ -f CNAME ] && cp CNAME _site/ || true + - name: Check the pages that must exist + run: | + for f in index.html impressum.html 404.html styles.css kiosk.js; do + test -s "_site/$f" || { echo "missing from the published site: $f"; exit 1; } + done - uses: actions/configure-pages@v5 - uses: actions/upload-pages-artifact@v3 with: