Skip to content
Permalink
Browse files

0.9.4

  • Loading branch information...
apobekiaris committed Jun 22, 2019
1 parent c3ceff6 commit e667d406f7ca9ac47d95612b404c9948c276dae5
Showing with 14 additions and 7 deletions.
  1. +0 −1 Build-Pipeline.yml
  2. +10 −2 Build-pipeline.ps1
  3. +2 −2 XpandPwsh/Public/Nuget/Update-NugetPackage.ps1
  4. +2 −2 XpandPwsh/XpandPwsh.psd1
@@ -13,7 +13,6 @@ steps:
- task: PowerShell@2
inputs:
targetType: filePath
pwsh: true
failOnStderr: false
filePath: .\Build-Pipeline.ps1
arguments: $(PSNugetApiKey)
@@ -9,11 +9,19 @@ $manifest = Invoke-Expression $data
"manifest.ModuleVersion=$($manifest.ModuleVersion)"
"onlineVersion=$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"
if ($LASTEXITCODE){
throw "Fail to publish $assemblyName`r`n`r`n$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
}
@@ -92,7 +92,7 @@ function Update-NugetPackagesConfig {
} | Where-Object { $_.NewVersion -and ($_.Version -ne $_.NewVersion) }
$sortedPackages = $packages | Group-Object Config | ForEach-Object {
$p = [PSCustomObject]@{
Packages = ($_.Group | Sort-PackageByDependencies)
Packages = ($_.Group | Get-SortedPackageByDependencies)
}
$p
}
@@ -115,7 +115,7 @@ function Update-NugetPackagesConfig {
}
}

function Sort-PackageByDependencies {
function Get-SortedPackageByDependencies {
[CmdletBinding()]
param (
[parameter(ValueFromPipeline, Mandatory)]
@@ -12,7 +12,7 @@
RootModule = 'XpandPwsh.psm1'

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

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

# 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.
LicenseUri = 'https://github.com/eXpandFramework/XpandPwsh/blob/master/LICENSE'

0 comments on commit e667d40

Please sign in to comment.
You can’t perform that action at this time.