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 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-11 10:24:56 +01:00
parent efea66ce61
commit 0e075b54d8
+10
View File
@@ -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