Skip to content

Commit

Permalink
ci: submodules manifests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArwynFr committed Oct 1, 2024
1 parent 6a73dcf commit 87ff46d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
@{
Author = 'Arwyn'
CompanyName = 'www.arwyn.fr'
Copyright = '(c) 2019-2024 - ArwynFr - MIT license'

ModuleVersion = '0.1.0'
GUID = '100363b2-37c6-4f16-b887-cf494ecade26'
Description = 'StepSemVer pwsh module used to increment semantic versions number.'
HelpInfoURI = 'https://github.com/ArwynFr/pwsh-StepSemVer#readme'

PrivateData = @{
ProjectUri = 'https://github.com/ArwynFr/pwsh-StepSemVer'
LicenseUri = 'https://github.com/ArwynFr/pwsh-StepSemVer/blob/main/LICENSE'
}

RootModule = 'ConvertTo-SemanticVersionStep.psm1'
FunctionsToExport = @(
'ConvertTo-SemanticVersionStep'
)
FunctionsToExport = @( 'ConvertTo-SemanticVersionStep' )
}
17 changes: 1 addition & 16 deletions StepSemVer/Step-SemanticVersion/Step-SemanticVersion.psd1
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
@{
Author = 'Arwyn'
CompanyName = 'www.gsri.team'
Copyright = '(c) 2019-2023 - ArwynFr - MIT license'

ModuleVersion = '0.1.0'
GUID = '1f3c8540-be35-4a72-94ba-537ca2ca80d7'
Description = 'StepSemVer pwsh module used to increment semantic versions number.'
HelpInfoURI = 'https://github.com/ArwynFr/pwsh-StepSemVer#readme'

PrivateData = @{
ProjectUri = 'https://github.com/ArwynFr/pwsh-StepSemVer'
LicenseUri = 'https://github.com/ArwynFr/pwsh-StepSemVer/blob/main/LICENSE'
}

RootModule = 'Step-SemanticVersion.psm1'
FunctionsToExport = @(
'Step-SemanticVersion'
)
FunctionsToExport = @( 'Step-SemanticVersion' )
}
6 changes: 4 additions & 2 deletions build/Start-Deployment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ param ()

$RootPath = Join-Path $PSScriptRoot .. | Convert-Path
$ModulePath = Join-Path $RootPath StepSemVer
$Manifest = Join-Path $ModulePath StepSemVer.psd1

Import-Module $ModulePath -Force
$CurrentVersion = (gh release view --json tagName | ConvertFrom-Json).tagName
Expand All @@ -16,7 +15,10 @@ $TargetVersion = $CurrentVersion | Step-SemanticVersion -BumpType $Increment -Pr
"CurrentVersion = $CurrentVersion" | Write-Verbose
"TargetVersion = $TargetVersion" | Write-Verbose

Update-ModuleManifest -ModuleVersion $TargetVersion -Path $Manifest -WhatIf:$WhatIfPreference
Get-ChildItem $ModulePath -Recurse -Filter *.psd1 | ForEach-Object {
Update-ModuleManifest -ModuleVersion $TargetVersion -Path $_ -WhatIf:$WhatIfPreference
}

Publish-Module -Path $ModulePath -NuGetApiKey $env:PSGALLERY_APIKEY -WhatIf:$WhatIfPreference

if ($PSCmdlet.ShouldProcess($TargetVersion, 'gh release create')) {
Expand Down

0 comments on commit 87ff46d

Please sign in to comment.