From 0e075b54d8d1ce67e94e440960593650ca1d3fd2 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Wed, 11 Mar 2026 10:24:56 +0100 Subject: [PATCH] feat: fetch homepage.json from node jail before build Adds a pre-build SCP step to pull the live homepage config from the node jail, so GitHub Actions always builds with the latest admin-saved config instead of the stale committed version. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9870c8e..77b1caf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,16 @@ jobs: - name: Install dependencies run: npm ci + - name: Fetch homepage config from node jail + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + mkdir -p content/.indiekit + scp -P 222 -o StrictHostKeyChecking=no \ + ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/local/bastille/jails/node/root/usr/local/indiekit/content/.indiekit/homepage.json \ + content/.indiekit/homepage.json + - name: Build CSS run: npm run build:css