Skip to content

feat: auto-sync docs/ to compass-docs on push#1712

Merged
tyler-dane merged 2 commits intomainfrom
feat/sync-docs-to-compass-docs
May 4, 2026
Merged

feat: auto-sync docs/ to compass-docs on push#1712
tyler-dane merged 2 commits intomainfrom
feat/sync-docs-to-compass-docs

Conversation

@tyler-dane
Copy link
Copy Markdown
Contributor

What changed

Adds .github/workflows/sync-docs.yml — a GitHub Action that keeps the compass-docs site in sync with this repo's docs/ directory automatically.

How it works

  1. Triggers on any push to main that touches docs/** (plus workflow_dispatch for manual runs)
  2. Checks out both this repo and compass-docs
  3. rsync --delete copies docs/compass-docs/docs/, mirroring the folder structure exactly
  4. Commits and pushes to compass-docs only if something changed
  5. Vercel detects the push and auto-deploys to docs.compasscalendar.com

Before merging

A repository secret must exist in this repo:

Secret name Value
COMPASS_DOCS_TOKEN Fine-grained PAT with Contents: Read and write scoped to SwitchbackTech/compass-docs

Test plan

  • Confirm COMPASS_DOCS_TOKEN secret is set in this repo's Actions secrets
  • Merge this PR
  • Trigger sync-docs manually via Actions → workflow_dispatch
  • Verify a "sync: update docs from compass" commit appears in compass-docs
  • Verify Vercel deploys and content appears at docs.compasscalendar.com
  • Edit a file in docs/ → push to main → confirm end-to-end flow completes

🤖 Generated with Claude Code

Triggers on push to main when any docs/** file changes (plus
workflow_dispatch for manual runs). Rsyncs the docs/ directory to the
compass-docs repo and pushes a commit, which triggers a Vercel
deployment automatically.

Requires a repo secret COMPASS_DOCS_TOKEN: a fine-grained PAT with
Contents read+write scoped to SwitchbackTech/compass-docs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread .github/workflows/sync-docs.yml Fixed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tyler-dane tyler-dane marked this pull request as ready for review May 4, 2026 16:12
@tyler-dane tyler-dane merged commit 9fe422b into main May 4, 2026
9 checks passed
@tyler-dane tyler-dane deleted the feat/sync-docs-to-compass-docs branch May 4, 2026 16:13
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