Skip to content

Commit

Permalink
0.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
apobekiaris committed Jun 22, 2019
1 parent c3ceff6 commit e667d40
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
1 change: 0 additions & 1 deletion Build-Pipeline.yml
Expand Up @@ -13,7 +13,6 @@ steps:
- task: PowerShell@2 - task: PowerShell@2
inputs: inputs:
targetType: filePath targetType: filePath
pwsh: true
failOnStderr: false failOnStderr: false
filePath: .\Build-Pipeline.ps1 filePath: .\Build-Pipeline.ps1
arguments: $(PSNugetApiKey) arguments: $(PSNugetApiKey)
Expand Down
12 changes: 10 additions & 2 deletions Build-pipeline.ps1
Expand Up @@ -9,11 +9,19 @@ $manifest = Invoke-Expression $data
"manifest.ModuleVersion=$($manifest.ModuleVersion)" "manifest.ModuleVersion=$($manifest.ModuleVersion)"
"onlineVersion=$onlineVersion" "onlineVersion=$onlineVersion"
if ($manifest.ModuleVersion -ne $onlineVersion) { if ($manifest.ModuleVersion -ne $onlineVersion) {
New-Item "$PSScriptRoot\XpandPwsh\Cmdlets\bin" -ItemType Directory $binFolder="$PSScriptRoot\XpandPwsh\Cmdlets\bin"
if (!(Test-Path $binFolder)){
New-Item $binFolder -ItemType Directory
}

$publish=dotnet build "$PSScriptRoot\XpandPwsh\Cmdlets\src\XpandPwsh.CmdLets.sln" $publish=dotnet build "$PSScriptRoot\XpandPwsh\Cmdlets\src\XpandPwsh.CmdLets.sln"
if ($LASTEXITCODE){ if ($LASTEXITCODE){
throw "Fail to publish $assemblyName`r`n`r`n$publish" throw "Fail to publish $assemblyName`r`n`r`n$publish"
} }
$publish $publish
Publish-Module -Path $PSScriptRoot\XpandPwsh -verbose -NugetApiKey $ApiKey -ErrorAction Stop -SkipAutomaticTags $ErrorActionPreference="Stop"

Import-Module $PSScriptRoot\XpandPwsh\XpandPwsh.psm1 -Verbose
$m=Get-Module XpandPwsh
Publish-Module -Path (Get-Item $m.Path).DirectoryName -verbose -NugetApiKey $ApiKey -SkipAutomaticTags -Repository PSGallery
} }
4 changes: 2 additions & 2 deletions XpandPwsh/Public/Nuget/Update-NugetPackage.ps1
Expand Up @@ -92,7 +92,7 @@ function Update-NugetPackagesConfig {
} | Where-Object { $_.NewVersion -and ($_.Version -ne $_.NewVersion) } } | Where-Object { $_.NewVersion -and ($_.Version -ne $_.NewVersion) }
$sortedPackages = $packages | Group-Object Config | ForEach-Object { $sortedPackages = $packages | Group-Object Config | ForEach-Object {
$p = [PSCustomObject]@{ $p = [PSCustomObject]@{
Packages = ($_.Group | Sort-PackageByDependencies) Packages = ($_.Group | Get-SortedPackageByDependencies)
} }
$p $p
} }
Expand All @@ -115,7 +115,7 @@ function Update-NugetPackagesConfig {
} }
} }


function Sort-PackageByDependencies { function Get-SortedPackageByDependencies {
[CmdletBinding()] [CmdletBinding()]
param ( param (
[parameter(ValueFromPipeline, Mandatory)] [parameter(ValueFromPipeline, Mandatory)]
Expand Down
4 changes: 2 additions & 2 deletions XpandPwsh/XpandPwsh.psd1
Expand Up @@ -12,7 +12,7 @@
RootModule = 'XpandPwsh.psm1' RootModule = 'XpandPwsh.psm1'


# Version number of this module. # Version number of this module.
ModuleVersion = '0.9.3' ModuleVersion = '0.9.4'


# Supported PSEditions # Supported PSEditions
# CompatiblePSEditions = @() # CompatiblePSEditions = @()
Expand Down Expand Up @@ -182,7 +182,7 @@ PrivateData = @{
PSData = @{ PSData = @{


# Tags applied to this module. These help with module discovery in online galleries. # Tags applied to this module. These help with module discovery in online galleries.
Tags = @("eXpandFramework", "DevExpress", "nuget","XAF","srcsrv","Invoke-Parallel") Tags = @("eXpandFramework", "DevExpress", "nuget","XAF","srcsrv")


# A URL to the license for this module. # A URL to the license for this module.
LicenseUri = 'https://github.com/eXpandFramework/XpandPwsh/blob/master/LICENSE' LicenseUri = 'https://github.com/eXpandFramework/XpandPwsh/blob/master/LICENSE'
Expand Down

0 comments on commit e667d40

Please sign in to comment.