Files
it-tools/.github/workflows
Sebastian DanielssonandClaude Opus 5.5 f375ba8629 ci: deploy to Vercel from one workflow with previews and a concurrency group
Replaces sharevb-vercel-preview.yml and sharevb-vercel-prod.yml with
deploy.yaml, which builds here and deploys the prebuilt output:

- One concurrency group per ref with cancel-in-progress, so a burst of
  pushes costs one deployment instead of one per push.
- A GitHub environment per run (Production or Preview), which restores the
  Environments sidebar and the PR's "View deployment" button.
- Pull requests build their own head commit, named after the PR branch so
  Vercel shows the branch rather than "HEAD"; runs from forks are skipped,
  since they get no secrets.
- Fails early on missing secrets, refuses to deploy a build without
  index.html, and pins the Vercel CLI.

The production hostname for sitemap.xml and robots.txt comes from the
VERCEL_PRODUCTION_URL repository variable instead of being hardcoded, so
the same file serves any deployment. Secrets can live on the repository
or on the Production/Preview environments.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
2026-09-26 12:08:17 +02:00
..