Skip to content

ci: fix powershell publishing job#1426

Merged
Benoît Cortier (CBenoit) merged 1 commit intomasterfrom
ci/fix-psgallery-publish
Jul 11, 2025
Merged

ci: fix powershell publishing job#1426
Benoît Cortier (CBenoit) merged 1 commit intomasterfrom
ci/fix-psgallery-publish

Conversation

@CBenoit
Copy link
Copy Markdown
Member

@CBenoit Benoît Cortier (CBenoit) commented Jul 11, 2025

  • Create a tarball archive instead of a zip archive for the PowerShell module.

    • It’s unclear to me why, but the PowerShell module we sign and re-archive in the package workflow is corrupted when we try to decompress it in the release workflow.
    • This is something I could verify locally using the 7z command.
  • The Publish-Module cmdlet was also failing with a cryptic error:

    Write-Error: Cannot retrieve the dynamic parameters for the cmdlet. Loading repository store failed: Could not find a part of the path '/home/runner/.local/share/PSResourceGet/PSResourceRepository.xml'.

    • I walked around that by switching to the newer Publish-PSResource cmdlet, which is a more modern rewrite of Publish-Module.

@CBenoit Benoît Cortier (CBenoit) merged commit 0527a88 into master Jul 11, 2025
39 checks passed
@CBenoit Benoît Cortier (CBenoit) deleted the ci/fix-psgallery-publish branch July 11, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants