moving the git version data gathering of AST

This commit is contained in:
Joseph Flinn 2021-01-04 23:04:55 +00:00
parent 5f53f0a988
commit fa49fb0585
1 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ steps:
- pwsh: | - pwsh: |
git clone https://github.com/vcsjones/AzureSignTool.git git clone https://github.com/vcsjones/AzureSignTool.git
cd AzureSignTool
$latest_head = $(git rev-parse HEAD)[0..9] -join "" $latest_head = $(git rev-parse HEAD)[0..9] -join ""
$latest_version = "0.0.0-g$latest_head" $latest_version = "0.0.0-g$latest_head"
Write-Host "--------" Write-Host "--------"
@ -38,7 +39,7 @@ steps:
Write-Host "latest_head - $latest_head" Write-Host "latest_head - $latest_head"
Write-Host "PACKAGE VERSION TO BUILD - $latest_version" Write-Host "PACKAGE VERSION TO BUILD - $latest_version"
Write-Host "--------" Write-Host "--------"
cd AzureSignTool
dotnet --version dotnet --version
dotnet restore dotnet restore
dotnet pack --output ./nupkg dotnet pack --output ./nupkg