Deploy README Sync
Ensure deployment outputs and documentation stay in sync in the same change cycle.
Input
- Final deployment URL and version/deployment ID.
- Target docs to update (at minimum root
README.mdand app-specific README files). - Environment context (
staging,production, or both). - Constraint: Do not close deployment work until doc sync is complete.
Output
- Updated README links and deployment version references.
- Confirmation of files changed.
- Confirmation that stale deployment links were searched and resolved.
Process
Phase 1: Discover Deployment Data
- Capture canonical URL and deployment version.
- Identify docs that expose live links.
- Confirm which environment link should be shown as default.
Phase 2: Update Documentation
- Replace outdated URLs and deployment versions.
- Keep one canonical live link per environment.
- Mark historical links explicitly if intentionally preserved.
Phase 3: Verify Consistency
- Search docs for stale links with:
rg -n "script.google.com/macros/s|/exec|deployment|live" README.md apps-script/README.md
- Confirm changed docs reference the same active URL/version.
- Report final URL, version, and touched files.
Completeness Checklist
- □ Live URL in README files matches the deployed target.
- □ Deployment version/id in docs matches latest deploy.
- □ No stale active links remain without explicit historical note.
Rules
- ALWAYS update documentation in the same workflow as deployment.
- ALWAYS verify links with a repo-wide search before finishing.
- ALWAYS treat this as default for Apps Script
/execdeployment work (unless user explicitly opts out). - NEVER leave placeholder URLs for production references.
- NEVER mark deployment complete when docs are out of sync.