Skip to content

fix(ci): deploy pages via pull request with auto-merge#14285

Open
skjnldsv wants to merge 6 commits intomasterfrom
fix/deploy
Open

fix(ci): deploy pages via pull request with auto-merge#14285
skjnldsv wants to merge 6 commits intomasterfrom
fix/deploy

Conversation

@skjnldsv
Copy link
Copy Markdown
Member

@skjnldsv skjnldsv commented Apr 9, 2026

fix(ci): deploy pages via pull request with auto-merge

Summary

Refactored the documentation CI workflow to improve performance, reduce costs, add link validation, and deploy via PR instead of direct pushes.

Changes

Performance: Shared LaTeX Cache

  • Created a dedicated setup-latex-cache job that builds once and shares with all workers
  • Saves time by avoiding redundant LaTeX package downloads

Cost Reduction

  • Instead of uploading ~1.8GB of artifacts, we cache the staged build and pass it between jobs
  • Faster CI

New stage-and-check Job

  • Determines deployment targets (master → latest, stable32 → stable + 32, etc.)
  • Organizes artifacts into clean staging structure
  • Passes to deploy job via cache
  • Future tasks
    • Validates all links with lychee before deployment

Safer Deployment via PR

  • Deployment now creates a PR to gh-pages instead of direct push
  • Auto-merges if validation passes
  • Provides audit trail and prevents direct branch modifications

Concurrency Control

  • Added concurrency group to cancel duplicate builds on rapid commits

Branch Mapping

  • masterserver/latest/
  • stable<N> (highest) → server/stable/ + server/<N>/
  • stable<N> (older) → server/<N>/ only

Result

  • Faster builds (shared cache)
  • Better validation before deploy
  • More controlled and traceable process

@skjnldsv skjnldsv self-assigned this Apr 9, 2026
@skjnldsv skjnldsv added 2. developing bug github_actions Pull requests that update GitHub Actions code labels Apr 9, 2026
@skjnldsv skjnldsv marked this pull request as ready for review April 10, 2026 04:33
@skjnldsv skjnldsv force-pushed the fix/deploy branch 2 times, most recently from ea46314 to f69851e Compare April 10, 2026 06:42
@skjnldsv skjnldsv enabled auto-merge April 10, 2026 06:54
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing bug github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant