From ec84ca275075c6014956adcfbdf10306f9043e87 Mon Sep 17 00:00:00 2001 From: "J. Fronny" <33260128+JFronny@users.noreply.github.com> Date: Tue, 7 Apr 2020 20:36:43 +0200 Subject: [PATCH] Maybe fix version --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d651468..4107ebd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,8 +21,9 @@ jobs: dotnet restore & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" -noLogo -verbosity:m -p:Configuration=Release cp *\bin\Release\net461\package.zip . - $asm = $([Reflection.Assembly]::LoadFile($(Get-Item $(Resolve-Path *\bin\Release\net461\*.exe).Path).FullName)) - $asmver = $asm.GetName().Version.ToString() + [timespan]$span = [System.DateTime]::Now - [datetime]'01/01/2000' + [version]$ver = [version]("1.0." + $span.Days.ToString() + "." + ($span.Seconds / 2).ToString()) + $asmver = $ver.ToString() echo "::set-output name=vers::$asmver" - name: Create Release id: create_release