Skip to content

[FEATURE] Trigger docs production build on overture-schema release - #690

Open
John McCall (lowlydba) wants to merge 10 commits into
mainfrom
lowlydba-docs-publish-trigger
Open

[FEATURE] Trigger docs production build on overture-schema release#690
John McCall (lowlydba) wants to merge 10 commits into
mainfrom
lowlydba-docs-publish-trigger

Conversation

@lowlydba

@lowlydba John McCall (lowlydba) commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Adds docs-publish.yml: fires on push: tags: ['v*'], the bare vanity tag create-package-release creates only for the overture-schema umbrella package's release (see docs/versioning.md's tag scheme). No other package's release creates a v* tag, so the glob is the entire filter, and github.ref_name is the vanity tag itself, used directly as schema-ref with no lookup needed. (release: published doesn't support a tag-pattern filter, only push/create do, which is why this dispatches off the tag push rather than the release event.)

Cross-repo dispatch uses the overture-releaser app (#637), the same app release-trigger.yaml already uses.

Also notes the new trigger in docs/versioning.md's release flow diagram.

Note

Docs-side work (the schema-ref input on production_deploy_documentation.yml) is happening in parallel on OvertureMaps/docs, OvertureMaps/docs#493.

Closes #691, a sub-issue of #679 scoped to this repo's half of the work.

Refs #689, OvertureMaps/docs#493

Adds docs-publish.yml: fires on release: published, filtered to the
overture-schema umbrella package's release (matching the same special-case
release-trigger.yaml already makes for it), and dispatches
production_deploy_documentation.yml on OvertureMaps/docs with the release's
vanity tag as schema-ref (falling back to the package-prefixed tag if the
vanity tag is ever missing).

Cross-repo dispatch needs a token scoped to actions: write on
OvertureMaps/docs, which no existing app provides (overture-release-publisher,
#637, is contents: write on this repo only). Filed #689 to provision a new
overture-docs-publisher app and its two secrets; the workflow references
that issue and won't function until it's done.

Also notes the new trigger in docs/versioning.md's release flow diagram.

Refs #679, #689

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

🗺️ Schema reference docs preview is live!

🌍 Preview https://staging.overturemaps.org/schema/pr/690/schema/index.html
🕐 Updated Aug 24, 2026 17:47 UTC
📝 Commit 770511c
🔧 env SCHEMA_PREVIEW true

Note

♻️ This preview updates automatically with each push to this PR.

Per direction: extend the existing overture-releaser app (already used by
release-trigger.yaml) with actions: write and install it on OvertureMaps/docs,
rather than filing for a brand-new app. docs-publish.yml now fetches the same
AWS Secrets Manager PEM via the same gha-releaser-secrets-reader OIDC role and
client ID release-trigger.yaml uses, just scoping the minted token to
permission-actions instead of permission-contents.

Refs #679, #689

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
release: doesn't support a tag-pattern filter (only push/create do), so
filtering required a job-level if condition plus an API lookup to resolve
the vanity tag as schema-ref. Triggering off push: tags: ['v*'] instead
makes the tag glob itself the filter (only overture-schema's release
creates a bare v* tag) and github.ref_name is the vanity tag directly, no
lookup step needed.

Tradeoff, documented in the workflow: if create-package-release ever skips
the vanity tag because it already exists, no push fires and the docs
rebuild silently doesn't dispatch for that release. Accepted per explicit
direction in favor of the simpler workflow.

Refs #679, #689

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
The workflow's header comment covered the trigger mechanics, the vanity-tag
edge case, and the overture-releaser reuse rationale in one long block.
Trimmed it to a few lines pointing at docs/versioning.md's Cut a release
section, which now spells all of that out where a reader is more likely to
look for it alongside the rest of the release flow.

Refs #679, #689

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
…visioning mechanics)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an automated cross-repo trigger so the OvertureMaps/docs production documentation build runs when the overture-schema umbrella package publishes its bare v* vanity tag, keeping generated schema references aligned with released schema versions.

Changes:

  • Add docs-publish.yml GitHub Actions workflow that dispatches the docs repo production deploy workflow on push of v* tags.
  • Update docs/versioning.md release flow documentation and diagram to include the new docs rebuild trigger.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/versioning.md Documents the new release-trigger → docs rebuild path and updates the mermaid flow diagram.
.github/workflows/docs-publish.yml New workflow that listens for v* tag pushes and dispatches the docs production deploy workflow using a GitHub App token.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/versioning.md
Comment thread .github/workflows/docs-publish.yml Outdated
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

one nit

Comment thread docs/versioning.md
@vcschapp

Copy link
Copy Markdown
Collaborator

Dana Bauer (@danabauer) to check in w John McCall (@lowlydba) on the plan here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable automated schema-repo trigger for docs publication (schema repo)

6 participants