From 6fc739f7cb7f131600524440d2f53f43369b9529 Mon Sep 17 00:00:00 2001 From: Oliver Lipkau Date: Mon, 1 Oct 2018 11:33:35 +0200 Subject: [PATCH] Fixed packaging of module for github release --- AtlassianPS.Configuration.build.ps1 | 2 +- Tools/BuildTools.psm1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AtlassianPS.Configuration.build.ps1 b/AtlassianPS.Configuration.build.ps1 index 216d098..5db80c9 100644 --- a/AtlassianPS.Configuration.build.ps1 +++ b/AtlassianPS.Configuration.build.ps1 @@ -292,7 +292,7 @@ task PublishToGallery { } # Synopsis: push a tag with the version to the git repository -task TagReplository GetNextVersion, { +task TagReplository GetNextVersion, Package, { Assert-True (-not [String]::IsNullOrEmpty($GithubAccessToken)) "No key for the PSGallery" $releaseText = "Release version $env:NextBuildVersion" diff --git a/Tools/BuildTools.psm1 b/Tools/BuildTools.psm1 index b4c88c0..24cdf53 100644 --- a/Tools/BuildTools.psm1 +++ b/Tools/BuildTools.psm1 @@ -178,8 +178,8 @@ function Publish-GithubRelease { function Publish-GithubReleaseArtifact { param( [Parameter( Mandatory )] - [ValidateNotNullOrEmpty] - $GITHUB_ACCESS_TOKEN, + [ValidateNotNullOrEmpty()] + [String]$GITHUB_ACCESS_TOKEN, [Uri]$Uri, [String]$Path )