To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit c5cb8635 authored by Aurel Schwitter's avatar Aurel Schwitter

Fix wrong git tag on publish

parent 81122e2f
......@@ -3,10 +3,10 @@ param (
[string]$NuGetApiKey
)
$PSD1Content = . "..\dist\IAMClient.psd1"
$Version = $PSD1Content.ModuleVersion
$PsdFileContent = Invoke-Expression -Command (Get-Content "..\$PsdFile" -Raw)
$ModuleVersion = $PsdFileContent.ModuleVersion
git tag "v$Version"
git tag "v$ModuleVersion"
git push --tags
Publish-Module -Name "$PSScriptRoot\..\dist\IAMClient.psd1" -NuGetApiKey $NuGetApiKey
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment