Skip to content

ci(docs): publish the internal preview from the internal-preview branch - #214

Merged
flozanofdez merged 1 commit into
docs-v2from
ci/PRODUCT-209-internal-preview-branch
Sep 11, 2026
Merged

ci(docs): publish the internal preview from the internal-preview branch#214
flozanofdez merged 1 commit into
docs-v2from
ci/PRODUCT-209-internal-preview-branch

Conversation

@flozanofdez

@flozanofdez flozanofdez commented Sep 11, 2026

Copy link
Copy Markdown

Jira: PRODUCT-209 · Infra: handpoint/handpoint-scripts#906 (commit 8358628a2)

Why

docs-v2 will be merged into dev and deleted. The internal preview at https://developers-internal.handpoint.io therefore moves to a new branch, internal-preview, that exists only to publish it. Feature pull requests target internal-preview.

What changes

File Change
.github/workflows/deploy.yml push and pull_request list internal-preview instead of docs-v2. The deploy-staging job runs on refs/heads/internal-preview. The concurrency group is renamed
README.md Local setup and the internal preview section name internal-preview. The stack path is corrected to aws/documentation/infra/
docs-internal/README.md Names internal-preview as the branch that holds the folder
docs/reference/known-issues.mdx The link to data/knownIssues.js points to internal-preview. The docs-v2 link breaks when that branch is deleted

The GitHub Pages deploy job does not change.

New: pull requests into internal-preview run the test-deploy build. A merge into that branch publishes the site, so a broken build must fail on the pull request.

⚠️ Merge order

Do not merge this pull request before the infra plan is reviewed. The cutover order is:

  1. Merge this pull request into docs-v2. docs-v2 stops the deploy at once, because a push reads the workflow from the pushed commit.
  2. Apply the infra change with -target=aws_iam_role.internal_documentation_deploy. The role then trusts internal-preview only.
  3. Create internal-preview from the docs-v2 HEAD. Its first push publishes the site.
  4. Move the open pull requests docs(avs-for-moto): correct AVS scope, validation and result behaviour #201, docs(reference): add surcharging integration guide #203 and docs(reference): reorganize Reference sidebar into logical categories #206 to internal-preview.

Verification

  • yarn test: 30 passed, 4 failed. The same 4 tests in generate-acquirer-pages.test.js fail on origin/docs-v2 without this change.
  • yarn generate && yarn build succeeds. The built known-issues page links to blob/internal-preview/data/knownIssues.js.
  • The workflow parses. deploy.if is unchanged, and deploy-staging.if compares with refs/heads/internal-preview.
  • git grep docs-v2 finds only scripts/deploy-staging.sh:50 and its test. That text names a stack path, not a branch. It is outside this change.

🤖 Generated with Claude Code

docs-v2 will be merged into dev and deleted. The internal preview therefore
moves to a branch that exists only to publish it, and feature pull requests
target that branch.

A merge into internal-preview now publishes the site, so pull requests into
it run the test-deploy build first. The public GitHub Pages job does not
change.

Merge this into docs-v2 before internal-preview is created. The new branch
then starts with this workflow, and docs-v2 stops the deploy at once.

Refs PRODUCT-209

Co-Authored-By: Claude Code - Claude Opus 5 <noreply@anthropic.com>
@flozanofdez
flozanofdez merged commit b6312bb into docs-v2 Sep 11, 2026
@flozanofdez
flozanofdez deleted the ci/PRODUCT-209-internal-preview-branch branch September 11, 2026 16:07
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.

1 participant