Skip to content

Conversation

@mmcky
Copy link
Contributor

@mmcky mmcky commented Nov 26, 2025

Overview

This PR implements Phase 1 of the publishing workflow upgrade as tracked in QuantEcon/meta#253.

Changes

Adds the following steps to publish.yml after the HTML build:

  1. Create HTML archive - Compresses _build/html/ into lecture-python-zh-cn-html-{tag}.tar.gz
  2. Generate checksum - Creates SHA256 hash for integrity verification (html-checksum.txt)
  3. Create manifest - Generates metadata file with build information (html-manifest.json)
  4. Upload to release - Attaches all three files to the GitHub release using softprops/action-gh-release@v2

Release Assets Created

Each publish-* tag will now include:

  • 📦 lecture-python-zh-cn-html-{tag}.tar.gz - Full HTML site archive
  • 🔐 html-checksum.txt - SHA256 verification file
  • 📋 html-manifest.json - Build metadata (tag, commit, timestamp, size, file count)

Testing

After merging, test with a publish-test-* tag to verify:

  1. Workflow completes successfully
  2. Three HTML assets are attached to release
  3. Archive can be downloaded and extracted
  4. Checksum verification works: sha256sum -c html-checksum.txt

@netlify
Copy link

netlify bot commented Nov 26, 2025

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit ecfc22e
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/69277c9dddca0a00087dc548
😎 Deploy Preview https://deploy-preview-96--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

@mmcky mmcky changed the title Add HTML archive to release assets (Phase 1) MAINT: Add HTML archive to release assets (Phase 1) Nov 26, 2025
@mmcky mmcky merged commit 753de32 into main Nov 26, 2025
6 checks passed
@mmcky mmcky deleted the phase1-html-archive branch November 26, 2025 22: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