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:
@@ -21,6 +21,16 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
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
|
- name: Build CSS
|
||||||
run: npm run build:css
|
run: npm run build:css
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user