Skip to content

feat: mirror README.md on the PowerShell Gallery package page - #85

Merged
mikemadeja merged 2 commits into
mainfrom
develop
Sep 19, 2026
Merged

mikemadeja merged 2 commits into
mainfrom
develop

Conversation

@mikemadeja

Copy link
Copy Markdown
Owner

Summary

PowerShell Gallery renders a module's README.md automatically if it's present in the published package — but Publish-Module only packages the PiHoleShell/ folder, and README.md lives at the repo root, so the Gallery page has never shown it.

  • CreateRelease.yml now copies README.md into PiHoleShell/ right before zipping/publishing, so both the GitHub release zip and the Gallery package include it. That copy is gitignored locally since it's purely a build-time artifact.
  • Switches the two screenshot <img> tags to absolute raw.githubusercontent.com URLs instead of repo-relative paths — a relative path only resolves when viewed from the repo root on GitHub, and would render as a broken image on the Gallery page.

Test plan

  • Ran the copy step's exact command locally — copies correctly, confirmed the destination path is gitignored and never shows up in git status
  • Invoke-ScriptAnalyzer -Path .\PiHoleShell -Recurse — no findings
  • Validated the updated workflow YAML parses correctly
  • Confirm the next release shows the README on the Gallery package page

🤖 Generated with Claude Code

mikemadeja and others added 2 commits September 18, 2026 22:24
PowerShell Gallery renders a module's README.md automatically if it's
present in the published package, but Publish-Module only packages
PiHoleShell/, and README.md lived at the repo root, so the Gallery
page never showed it. The release workflow now copies README.md into
PiHoleShell/ before zipping/publishing (gitignored locally, since it's
a build-time artifact, never meant to be committed).

Also switches the two screenshot images to absolute GitHub raw URLs
instead of repo-relative paths, since a relative path only resolves
correctly when viewed from the repo root and would render as a broken
image on the Gallery page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
feat: mirror README.md on the PowerShell Gallery package page
@mikemadeja
mikemadeja merged commit 02c8a52 into main Sep 19, 2026
4 checks passed
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.

1 participant