Skip to content

Adopt quantecon/actions/publish-gh-pages for GitHub Pages deploy#568

Open
mmcky wants to merge 2 commits into
mainfrom
ci/adopt-publish-gh-pages
Open

Adopt quantecon/actions/publish-gh-pages for GitHub Pages deploy#568
mmcky wants to merge 2 commits into
mainfrom
ci/adopt-publish-gh-pages

Conversation

@mmcky

@mmcky mmcky commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Migrates the GitHub Pages deploy to quantecon/actions/publish-gh-pages@v0.8.0, bringing this repo onto the same publish action as the rest of the lecture family. Part of the standardization tracked in QuantEcon/lectures#11.

What changed

One composite step replaces six hand-rolled steps — the inline release-asset packaging (tar + sha256sum + manifest.jsonsoftprops/action-gh-release) and the native Pages deploy (configure-pagesupload-pages-artifactdeploy-pages):

  • uses: quantecon/actions/publish-gh-pages@v0.8.0 with build-dir, cname: python-programming.quantecon.org, create-release-assets: 'true', asset-name, github-token.
  • environment.url now reads the composite's output name (page-url).

Scope — deploy only, no build change

The jb build steps (nitpick flags intact), the PDF/notebook asset builds, and the notebook sync to lecture-python-programming.notebooks are untouched. This is the same deploy-step swap the five composite repos already run in production, so the build-behavior differences don't apply here.

Behavioral notes

  • The release tarball name is unchanged (lecture-python-programming-html-<tag>.tar.gz). The checksum/manifest filenames change from the fixed html-checksum.txt / html-manifest.json to lecture-python-programming-html-checksum.txt / -manifest.json, and the manifest gains name + repository fields — matching the convention the other repos already use.
  • Verify with the first publish* tag after merge.

References: publish-gh-pages@v0.8.0

Replaces the hand-rolled Pages deploy (configure-pages + upload-pages-artifact
+ deploy-pages) and inline release-asset packaging (tar/sha256/manifest ->
softprops/action-gh-release) with a single quantecon/actions/publish-gh-pages@v0.8.0
step, matching the rest of the lecture family. Deploy-step only: the build,
notebook sync, PDF/notebook and Netlify steps are unchanged. Part of
QuantEcon/lectures#11.

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

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

This PR migrates the repository’s GitHub Pages deployment workflow to use the shared quantecon/actions/publish-gh-pages@v0.8.0 composite action, aligning the deploy/release-asset publishing approach with the rest of the QuantEcon lecture repositories.

Changes:

  • Replace the hand-rolled release-asset packaging + GitHub Pages deploy steps with a single quantecon/actions/publish-gh-pages@v0.8.0 step (including cname and release-asset creation).
  • Update the GitHub Pages environment URL to read from the deploy step’s output.

Comment thread .github/workflows/publish.yml Outdated
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

@github-actions github-actions Bot temporarily deployed to pull request July 8, 2026 06:33 Inactive
steps.deployment.outputs['page-url'] is the robust form for a hyphenated
output key; addresses Copilot review feedback.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot temporarily deployed to pull request July 8, 2026 06:52 Inactive
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