psake / PowerShellBuild

Common build tasks for psake and Invoke-Build that build and test PowerShell modules
MIT License
133 stars 24 forks source link

Allow using Credential and ApiKey when publishing a module #30

Closed pauby closed 5 years ago

pauby commented 5 years ago

Allows the use of both Credential and ApiKey to be used.

Closes #29

Description

Some authenticated feeds (or all the ones I've used) require both the Credential and ApiKey parameters to be used. This changes both the Publish psake task and the Publish-PSBuildModule to use either or both.

Related Issue

29

Motivation and Context

Allows publishing modules to authenticated feeds that require both a Credential and ApiKey parameter.

How Has This Been Tested?

I have a build process I use for internal modules that this change has been tested on and it successfully publishes the module on an external feed and is able to also check that feed for dependent internal modules.

Types of changes

Checklist:

devblackops commented 5 years ago

LGTM @pauby. Thanks!