Skip to content

Commit

Permalink
ci: test publish modules fix for nuget error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTaylorLee committed Jan 15, 2024
1 parent dcac594 commit 407db73
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/scripts/Invoke-PublishModules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,30 @@ function Invoke-PublishModules {
$step = Get-Content "$workingdirectory/modules/AdminToolbox/ChangeLog.md" | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); $AdminToolboxGithub = $step3 | Select-Object -First 1
if ([version]$AdminToolboxGithub -gt [version]$AdminToolboxPSGallery ) {
New-Manifest -AdminToolbox #Generate each modules manifest files
Install-Module AdminToolbox.ActiveDirectory -AllowClobber -Force; Import-Module AdminToolbox.ActiveDirectory -Force -Global
Install-Module AdminToolbox.EndpointManagement -AllowClobber -Force; Import-Module AdminToolbox.EndpointManagement -Force -Global
Install-Module AdminToolbox.Exchange -AllowClobber -Force; Import-Module AdminToolbox.Exchange -Force -Global
Install-Module AdminToolbox.FFTools -AllowClobber -Force; Import-Module AdminToolbox.FFTools -Force -Global
Install-Module AdminToolbox.FileManagement -AllowClobber -Force; Import-Module AdminToolbox.FileManagement -Force -Global
Install-Module AdminToolbox.FortiWizard -AllowClobber -Force; Import-Module AdminToolbox.FortiWizard -Force -Global
Install-Module AdminToolbox.Fun -AllowClobber -Force; Import-Module AdminToolbox.Fun -Force -Global
Install-Module AdminToolbox.msgraph -AllowClobber -Force; Import-Module AdminToolbox.Networking -Force -Global
Install-Module AdminToolbox.Networking -AllowClobber -Force; Import-Module AdminToolbox.Networking -Force -Global
Install-Module AdminToolbox.Office365 -AllowClobber -Force; Import-Module AdminToolbox.Office365 -Force -Global
Install-Module AdminToolbox.Remoting -AllowClobber -Force; Import-Module AdminToolbox.Remoting -Force -Global
Install-Module AdminToolbox.VMWareAutomate -AllowClobber -Force; Import-Module AdminToolbox.VMWareAutomate -Force -Global
#Install-Module AdminToolbox.ActiveDirectory -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.ActiveDirectory -Force -Global
#Install-Module AdminToolbox.EndpointManagement -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.EndpointManagement -Force -Global
#Install-Module AdminToolbox.Exchange -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.Exchange -Force -Global
#Install-Module AdminToolbox.FFTools -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.FFTools -Force -Global
#Install-Module AdminToolbox.FileManagement -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.FileManagement -Force -Global
#Install-Module AdminToolbox.FortiWizard -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.FortiWizard -Force -Global
#Install-Module AdminToolbox.Fun -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.Fun -Force -Global
#Install-Module AdminToolbox.msgraph -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.Networking -Force -Global
#Install-Module AdminToolbox.Networking -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.Networking -Force -Global
#Install-Module AdminToolbox.Office365 -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.Office365 -Force -Global
#Install-Module AdminToolbox.Remoting -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.Remoting -Force -Global
#Install-Module AdminToolbox.VMWareAutomate -AllowClobber -Force;
Import-Module $workingdirectory/modules/AdminToolbox.VMWareAutomate -Force -Global
Publish-Module -Path "$workingdirectory/modules/AdminToolbox" -NuGetApiKey $env:NUGET_KEY
$AdminToolbox = Write-Output "[+] AdminToolbox published to PSGallery"
}
Expand Down

0 comments on commit 407db73

Please sign in to comment.