Files
==TIM.©.B == b39859d66a fix: harden SMART scan, site links and CI gates (#48)
- maintenance: a disk whose smartctl output is not JSON no longer aborts
  the whole report; the device is named as unreadable and the remaining
  disks plus their state file keep working (regression test added).
- site: repository-relative file links (CHANGELOG.md and friends) point
  at the GitHub blob, headings get GitHub-style anchors so the upstream
  #-installation, #health-monitoring--alerts and
  #relaying-through-an-external-smtp-provider links resolve again.
- pages workflow: rebuild on README/README.de.md changes because the
  guide reads them at build time; pin all actions to commit SHAs.
- ci: new documentation-site job builds Astro, verifies the five routes,
  key commands and anchors, and runs npm audit on pull requests.
- readme: keep HEALTH_MAIL_TO commented out in the alert quick start so
  --test-notify proves ntfy instead of failing on a missing MTA.
2026-11-03 01:25:40 +01:00

54 lines
1.4 KiB
YAML

name: Deploy GitHub Pages
on:
push:
branches: [main]
paths:
- 'site/**'
# The guide page reads both READMEs at build time, so they must rebuild the site.
- 'README.md'
- 'README.de.md'
- '.github/workflows/deploy-pages.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '24'
cache: npm
cache-dependency-path: site/package-lock.json
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- run: npm ci
working-directory: site
- run: npm run build
working-directory: site
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: site/dist
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4