Skip to content

ci(publish): drop publish-gh-pages' cname input - #636

Open
mmcky wants to merge 1 commit into
mainfrom
drop-publish-cname
Open

mmcky wants to merge 1 commit into
mainfrom
drop-publish-cname

Conversation

@mmcky

@mmcky mmcky commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

publish-gh-pages deploys through GitHub Actions Pages, which ignores a CNAME file, so the cname: input has never set the custom domain. Settings → Pages does, and it holds python-programming.quantecon.org (checked with gh api repos/QuantEcon/lecture-python-programming/pages: cname: python-programming.quantecon.org, build_type: workflow, https_enforced: true). From QuantEcon/actions v0.12.0 the action warns on every deploy that still passes the input. This removes it and leaves a comment saying where the domain lives.

No effect on the published site. The only other thing the input did was write a CNAME file into the build directory, so the release HTML archive stops carrying one; nothing reads it when serving.

This workflow runs on a publish* tag, so this PR's CI does not exercise it. The check is the next real publish after merge: once Dependabot moves this repo from @v0.11.1 to v0.12.0, publish runs would otherwise start showing the cname warning; with this change they won't, and the site should still serve on python-programming.quantecon.org.

Follow-up from QuantEcon/actions#110.

Assisted-by: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

The GitHub Actions Pages deploy that publish-gh-pages uses ignores a CNAME
file, so the input never set the custom domain: Settings → Pages does, and
it already holds python-programming.quantecon.org. From QuantEcon/actions v0.12.0 the action warns on
every deploy that still passes it (QuantEcon/actions#109,
QuantEcon/actions#110).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 25, 2026 05:24

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.

Copilot review overview

🟢 Approval recommended

The change is a straightforward removal of an ineffective action input with clarifying documentation and no functional impact on deployment.

Review effort: Lite
Findings: None

What changed in this PR

Removes the unused cname input from the GitHub Actions Pages publish workflow since the Pages custom domain is configured in repository Settings (and the action’s CNAME file output is ignored for workflow-based Pages deploys), avoiding new warnings introduced by quantecon/actions v0.12.0.

Changes:

  • Drop cname: python-programming.quantecon.org from the publish-gh-pages action invocation.
  • Add an inline comment documenting where the custom domain is configured and why the workflow does not manage it.
File Description
.github/​workflows/​publish.yml Removes the no-op cname input and documents that the domain is set via Settings → Pages.

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

@github-actions

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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