Skip to content

chore: deploy site via GitHub Pages under project path - #2

Merged
TimInTech merged 2 commits into
mainfrom
chore/github-pages-deployment
Jul 13, 2026
Merged

TimInTech merged 2 commits into
mainfrom
chore/github-pages-deployment

Conversation

@TimInTech

@TimInTech TimInTech commented Jul 12, 2026 •

Copy link
Copy Markdown
Owner

Ziel

Auslieferung der statischen Astro-Website ausschließlich über GitHub Pages als
Project Page unter:

https://timintech.github.io/blitztextweb/

Keine Custom Domain, keine DNS-Schritte, keine CNAME-Datei.

Änderungen

GitHub-Pages-Unterpfad (Base-URL)

  • astro.config.mjs — site: 'https://timintech.github.io', base: '/blitztextweb'.
  • src/utils/base.ts (neu) — zentrale withBase()-Behandlung; verhält sich ohne
    konfiguriertes base neutral (Domain-Root).
  • Alle internen Links und Assets über withBase() bzw. base präfixiert: Canonical-,
    hreflang-, Open-Graph-, Sitemap- und JSON-LD-URLs, Favicon, Navigation, Footer,
    Sprachumschalter, Impressum-/Datenschutz-Links, Logo, Screenshots und Tray-Icons.
  • Externe Links (GitHub-Repository, Releases, Docs) bleiben unverändert.

Custom-Domain-Inhalte entfernt

  • blitztext.timintech.de vollständig aus Code, Config, robots.txt, Meta-Daten und
    README entfernt; Ziel-URL überall auf https://timintech.github.io/blitztextweb/.
  • Datenschutz/Privacy: Hosting-Anbieter technisch korrekt als GitHub Pages
    (GitHub, Inc.)
    benannt, mit Verweis auf die offizielle GitHub-Datenschutzerklärung
    und GitHub-Pages-Dokumentation. Keine erfundenen Speicherdauern oder Vertragsangaben.
  • Keine CNAME-Datei angelegt.

Workflow-Berechtigungen (offener P2-Review-Hinweis)

  • .github/workflows/deploy-pages.yml: Workflow- und Build-Ebene nur mit
    contents: read; pages: write und id-token: write ausschließlich im
    Deploy-Job.
  • Build und Deploy bleiben getrennt; PRs laufen nur über ci.yml (Build ohne Deploy);
    Deployment nur bei Push auf main oder workflow_dispatch.

Tests (lokal)

  • npm ci ✅
  • npm run check ✅ (0 errors, 0 warnings, 1 hint — vorbestehend)
  • npm run build ✅ (6 Seiten nach dist/)
  • git diff --check ✅ · dist/ nicht getrackt ✅
  • Suche blitztext.timintech.de | CNAME blitztext | Custom Domain | DNS-Ziel → nur
    README-Zeile „keine Custom Domain“ ✅
  • find … -name CNAME → keine Datei ✅
  • Built-HTML-Prüfung: keine Root-Pfade außerhalb /blitztextweb/ ✅
  • Astro-Preview: /blitztextweb/, /blitztextweb/en/, /blitztextweb/impressum/,
    /blitztextweb/datenschutz/, /blitztextweb/en/privacy/ sowie Favicon/Screenshots
    → alle HTTP 200; / (Root) korrekt 404 ✅

Rechtstext-Gate (getrennt vom Merge)

Das Impressum (src/pages/impressum.astro) enthält weiterhin rechtlich
erforderliche [PLATZHALTER] (Betreiber, Anschrift, Kontakt). Diese wurden bewusst
nicht mit erfundenen Angaben gefüllt.

➡️ Der technische PR ist mergebar. GitHub Pages darf jedoch erst öffentlich aktiviert
werden, nachdem der Betreiber die Impressum-Platzhalter ausgefüllt hat.
Merge und
Pages-Aktivierung sind getrennte Schritte.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015kFBiAzFDdHPc5j66PAw6H

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a68b8bd33d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/deploy-pages.yml Resolved
Serve the site as a GitHub Pages project page at
https://timintech.github.io/blitztextweb/ instead of a custom domain.

- astro.config: site=timintech.github.io, base=/blitztextweb
- central withBase() helper (src/utils/base.ts) for all internal links/assets
- prefix canonical, hreflang, OG, sitemap, favicon, nav, footer, images
- remove custom-domain / DNS / CNAME references (README, robots, meta)
- privacy pages: name GitHub Pages / GitHub, Inc. as host with official refs
- workflow: scope pages:write / id-token:write to the deploy job only,
  workflow and build run with contents:read

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rhz1aNuLb6REABNLkPSKNz
@TimInTech TimInTech changed the title chore: add GitHub Pages deployment workflow chore: deploy site via GitHub Pages under project path Jul 13, 2026
@TimInTech
TimInTech merged commit 9e9e767 into main Jul 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants