Skip to content

Commit 1f2b1e4

Browse files
committed
Fix: Fix module path in publish-to-psgallery job in github workflows
1 parent 143308e commit 1f2b1e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/ci-master-pr.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,11 @@ jobs:
274274
MODULE_VERSION=$( echo "${REF}" | sed 's/^v*//' )
275275
276276
# Generate the new module manifest
277-
MODULE_VERSION=${MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/module/Generate-ModuleManifest.ps1 -DefinitionFile build/definitions/modulemanifest/definition.ps1 -Path src/Type-Pwsh/Type-Pwsh.psd1'
277+
MODULE_NAME=$(basename $(pwd))
278+
MODULE_VERSION=${MODULE_VERSION} pwsh -Command "build/PSModulePublisher/src/module/Generate-ModuleManifest.ps1 -DefinitionFile build/definitions/modulemanifest/definition.ps1 -Path src/$MODULE_NAME/$MODULE_NAME.psd1"
278279
279280
# Publish the module
280-
NUGET_API_KEY=${NUGET_API_KEY} MODULE_VERSION=${MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/Type-Pwsh/Type-Pwsh.psd1 -Repository PSGallery'
281+
NUGET_API_KEY=${NUGET_API_KEY} MODULE_VERSION=${MODULE_VERSION} pwsh -Command "build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/$MODULE_NAME/$MODULE_NAME.psd1 -Repository PSGallery"
281282
282283
publish-draft-release:
283284
needs: [test-powershell-5-1-windows-2016, test-powershell-5-1-windows-2019, test-powershell-6-0, test-powershell-6-1, test-powershell-6-1, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2, publish-to-psgallery]

0 commit comments

Comments
 (0)