Skip to content

publish: fix hyphenated page-url output reference (env URL)#956

Merged
mmcky merged 1 commit into
mainfrom
fix-pages-env-url
Jul 8, 2026
Merged

publish: fix hyphenated page-url output reference (env URL)#956
mmcky merged 1 commit into
mainfrom
fix-pages-env-url

Conversation

@mmcky

@mmcky mmcky commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Small fix to the github-pages deployment environment.url in publish.yml. The value referenced the action's page-url output with dot notation:

url: ${{ steps.deployment.outputs.page-url }}

In GitHub Actions expressions a hyphen in dot notation is parsed as subtraction (page minus url), so this doesn't resolve to the output. The fix uses index syntax:

url: ${{ steps.deployment.outputs['page-url'] }}

quantecon/actions/publish-gh-pages does expose an output named page-url (hyphenated), so index syntax is required to read it.

Impact

Cosmetic only — environment.url sets the clickable link shown on the deployment in the repo's Environments/Deployments UI. Publishing and the live site are unaffected (this line has been deploying fine as-is). This just makes that convenience link resolve correctly.

Caught by Copilot review of the datascience migration (QuantEcon/lecture-datascience.myst#280); the same line came from the shared reference used across the family, so this applies the fix to the already-merged repos too. Part of QuantEcon/meta#282.

🤖 Generated with Claude Code

`steps.deployment.outputs.page-url` is parsed as subtraction in GitHub
Actions expressions (the hyphen), so environment.url wouldn't evaluate.
Use index syntax `outputs['page-url']`. Cosmetic (env URL display only).

Caught by Copilot review of QuantEcon/lecture-datascience.myst#280.
Part of QuantEcon/meta#282.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 8, 2026 05:17

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

Fixes the github-pages deployment environment.url expression in the publish workflow so it correctly references the hyphenated page-url output using index syntax (required in GitHub Actions expressions).

Changes:

  • Update environment.url from dot notation (outputs.page-url, parsed as subtraction) to index notation (outputs['page-url']) so the deployment UI link resolves correctly.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-956--sunny-cactus-210e3e.netlify.app

Commit: 18ac1d1


Build Info

@mmcky mmcky merged commit 8cfba4c into main Jul 8, 2026
2 checks passed
@mmcky mmcky deleted the fix-pages-env-url branch July 8, 2026 05:35
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