如何使用 Appveyor 将 Powershell 模块发布到 PowershellGallery?
How to publish a Powershell Module to PowershellGallery with Appveyor?
有没有办法将自定义 powershell 脚本添加到 appveyor 构建脚本中以将模块发布到 powershellgallery? - 模块源将在 github 仓库中。
如果没有,也许可以在 appveyor 网络配置本身中实现?
我相信你可以根据 Publish-Module command and insert it into right stage of build pipeline 创建脚本。例如,如果您决定在测试阶段后发布,它在 YAML 中将如下所示:
after_test:
- ps: Publish-Module -Name "MyDscModule" -NuGetApiKey "11e4b435-6cb4-4bf7-8611-5162ed75eb73"
或者在 UI 中,您需要转到 设置 > 测试 > 自动 > 测试后脚本 > PS 并输入发布脚本。
有没有办法将自定义 powershell 脚本添加到 appveyor 构建脚本中以将模块发布到 powershellgallery? - 模块源将在 github 仓库中。
如果没有,也许可以在 appveyor 网络配置本身中实现?
我相信你可以根据 Publish-Module command and insert it into right stage of build pipeline 创建脚本。例如,如果您决定在测试阶段后发布,它在 YAML 中将如下所示:
after_test:
- ps: Publish-Module -Name "MyDscModule" -NuGetApiKey "11e4b435-6cb4-4bf7-8611-5162ed75eb73"
或者在 UI 中,您需要转到 设置 > 测试 > 自动 > 测试后脚本 > PS 并输入发布脚本。