Built base module structure

This commit is contained in:
KevinMarquette
2017-02-02 18:34:04 -08:00
parent a346ed28a0
commit 912c4879d0
13 changed files with 260 additions and 0 deletions

29
deploy.PSDeploy.ps1 Normal file
View File

@@ -0,0 +1,29 @@
# Generic module deployment.
# This stuff should be moved to psake for a cleaner deployment view
# ASSUMPTIONS:
# folder structure of:
# - RepoFolder
# - This PSDeploy file
# - ModuleName
# - ModuleName.psd1
# Nuget key in $ENV:NugetApiKey
# Set-BuildEnvironment from BuildHelpers module has populated ENV:BHProjectName
# find a folder that has psd1 of same name...
if($ENV:BHProjectName -and $ENV:BHProjectName.Count -eq 1)
{
Deploy Module {
By PSGalleryModule {
FromSource $ENV:BHProjectName
To PSGallery
WithOptions @{
ApiKey = $ENV:NugetApiKey
}
}
}
}