Skip to content

Commit

Permalink
Update Deploy-Module.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis332 authored Oct 8, 2020
1 parent 0a6517c commit b959737
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/Deploy-Module.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

$ReleaseNotes = $env:RELEASE_NOTES
$RequiredModules = $env:REQUIRED_MODULES -join ','
$ModuleVersion = ($env:RELEASE_VERSION) -replace 'v',''
Write-Host "ModuleVersion: $ModuleVersion"

$ManifestPath = Resolve-Path -Path "*\*.psd1"
Write-Host "Manifest Path: $ManifestPath"

if (-not [string]::IsNullOrWhiteSpace($RequiredModules)) {
Write-Host "Installing PreReq modules"
Install-Module $RequiredModules
}


Update-ModuleManifest -ReleaseNotes $ReleaseNotes -Path $ManifestPath.Path -ModuleVersion $ModuleVersion -Verbose

$ModuleFilePath = Resolve-Path -Path "*\*.psm1"
Expand Down

0 comments on commit b959737

Please sign in to comment.