feat: flyt sitet fra Astro til Zola

Samme indhold, URL'er og udseende, bygget af en enkelt zola-binær og Tailwind
standalone-CLI uden Node. Kanonisk domæne er asger.weirsoe.dk.

Blogindlæg ligger som page bundles med frontmatter Zola forstår, så de gamle
stempler er ugyldige, indtil scripts/omstempl.py er kørt med PUBLISH_KEY.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Asger Geel Weirsøe
2026-11-01 16:47:08 +01:00
co-authored by Claude Opus 5.5
parent 7e13068dd2
commit e58a11c2b4
159 changed files with 8031 additions and 3574 deletions
+10 -18
View File
@@ -15,31 +15,23 @@ jobs:
# Fuld historik til sitemap-lastmod og IndexNow
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
- uses: actions/setup-python@v5
with:
node-version: 22
# Runneren udelader optional deps, så sharp-binæren installeres eksplicit
- name: Install dependencies
env:
npm_config_omit: ""
npm_config_optional: "true"
run: |
npm install --include=optional
npm install --include=optional --os=linux --libc=glibc --cpu=x64 sharp
node -e "console.log('sharp', require('sharp').versions.sharp)"
python-version: "3.12"
- name: Verify blog approvals
env:
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
run: node scripts/verify-approvals.mjs
run: python3 scripts/verify-approvals.py
- name: Fetch zola and tailwind
run: sh scripts/hent-vaerktoej.sh
- name: Build site
run: npm run build
run: sh scripts/build.sh
# tar over SSH med atomisk swap (runner-imaget har ikke rsync)
- name: Deploy dist/ over SSH
- name: Deploy public/ over SSH
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USER: ${{ vars.DEPLOY_USER }}
@@ -55,7 +47,7 @@ jobs:
SSH="ssh -i $HOME/.ssh/deploy_key -o StrictHostKeyChecking=accept-new"
ssh-keyscan -t ed25519 "$DEPLOY_HOST" >> ~/.ssh/known_hosts 2>/dev/null || true
$SSH "$DEPLOY_USER@$DEPLOY_HOST" "rm -rf $DEPLOY_PATH.new && mkdir -p $DEPLOY_PATH.new"
tar -C dist -czf - . | $SSH "$DEPLOY_USER@$DEPLOY_HOST" \
tar -C public -czf - . | $SSH "$DEPLOY_USER@$DEPLOY_HOST" \
"tar -C $DEPLOY_PATH.new -xzf - \
&& rm -rf $DEPLOY_PATH.old \
&& { mv $DEPLOY_PATH $DEPLOY_PATH.old 2>/dev/null || true; } \
@@ -66,4 +58,4 @@ jobs:
continue-on-error: true
env:
GITHUB_EVENT_BEFORE: ${{ github.event.before }}
run: node scripts/indexnow.mjs
run: python3 scripts/indexnow.py