Ryd op i kommentarer
Build & Deploy / deploy (push) Successful in 5m55s

This commit is contained in:
Asger Geel Weirsøe
2026-10-31 14:43:20 +01:00
parent 490835e6ae
commit 288205630e
12 changed files with 21 additions and 116 deletions
+3 -16
View File
@@ -12,9 +12,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
# Fuld historik: astro.config.mjs udleder sitemap-lastmod fra hver sides
# sidste commit, og IndexNow-steppet differ pushet. Begge er værdiløse
# med den default shallow clone (fetch-depth: 1).
# Fuld historik til sitemap-lastmod og IndexNow
fetch-depth: 0
- name: Setup Node
@@ -22,10 +20,7 @@ jobs:
with:
node-version: 22
# The runner forces omit of optional deps, dropping @img/sharp-linux-x64
# (sharp's platform binary) -> astro:assets MissingSharp. Clear the omit
# env and force-install the linux/glibc/x64 sharp binary per sharp's
# official cross-platform install, then verify it loads.
# Runneren udelader optional deps, så sharp-binæren installeres eksplicit
- name: Install dependencies
env:
npm_config_omit: ""
@@ -35,7 +30,6 @@ jobs:
npm install --include=optional --os=linux --libc=glibc --cpu=x64 sharp
node -e "console.log('sharp', require('sharp').versions.sharp)"
# Intet indlæg bygges uden godkendelse; se scripts/verify-approvals.mjs.
- name: Verify blog approvals
env:
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
@@ -44,11 +38,7 @@ jobs:
- name: Build site
run: npm run build
# tar over SSH (the runner image has no rsync). Build is unpacked into
# a .new dir on the web host and atomically swapped in, so the live web
# root is never left half-written. Host and path are repository secrets,
# not variables: run logs of a public repo are public, and Gitea prints
# variables in them but masks secrets.
# tar over SSH med atomisk swap (runner-imaget har ikke rsync)
- name: Deploy dist/ over SSH
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
@@ -72,9 +62,6 @@ jobs:
&& mv $DEPLOY_PATH.new $DEPLOY_PATH \
&& rm -rf $DEPLOY_PATH.old"
# Fortæl Bing/Yandex m.fl. med det samme hvilke sider der ændrede sig.
# Kører EFTER deploy, så nøglefilen og siderne er live når de kommer og tjekker.
# Google understøtter ikke IndexNow. Må aldrig vælte et ellers vellykket deploy.
- name: Ping IndexNow
continue-on-error: true
env: