Skip to content

chore(ci): gate docs publish on next only#697

Closed
rsarika wants to merge 1 commit into
webex:nextfrom
rsarika:codex/stop-gh-pages-task-refactor-next
Closed

chore(ci): gate docs publish on next only#697
rsarika wants to merge 1 commit into
webex:nextfrom
rsarika:codex/stop-gh-pages-task-refactor-next

Conversation

@rsarika

@rsarika rsarika commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This pull request addresses

This follow-up PR brings the same publish-documentation guard onto next so the deploy workflow behavior is aligned there as well.

by making the following changes

  • Added if: github.ref_name == 'next' to the publish-documentation job in .github/workflows/deploy.yml
  • Kept the rest of the deploy workflow unchanged

Notes

  • This is a small follow-up PR against next
  • It mirrors the docs-publish guard introduced for task-refactor-based work so deployment behavior is consistent once merged

@rsarika rsarika requested a review from a team as a code owner June 11, 2026 13:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 970390ec2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

push:
branches: # Allow list of deployable tags and branches. Note that all allow-listed branches cannot include any `/` characters
- next
- task-refactor

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid enabling package publishing from task-refactor

For any push to task-refactor with changed packages, this new branch filter runs the entire deploy workflow, not just the documentation job; the existing publish-npm deploy step still publishes packages with --tag ${GITHUB_REF##*/} before the docs job is skipped. If the intent is only to prevent docs publishing outside next, this also opens NPM publishing, release tagging, PR comments, and Webex notifications from task-refactor, so either remove this trigger or add matching branch guards to the publishing/tagging jobs.

Useful? React with 👍 / 👎.

@aws-amplify-us-east-2

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-697.d1b38q61t1z947.amplifyapp.com

rsarika commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #698 so the follow-up branch uses the plain name stop-gh-pages-task-refactor-next instead of a codex/ prefix.

@rsarika rsarika closed this Jun 11, 2026
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