wy doe
This commit is contained in:
parent
830c193a56
commit
9773f653ff
|
@ -13,23 +13,27 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
id: base_init
|
id: base_init
|
||||||
run: |
|
run: |
|
||||||
|
echo "download tools"
|
||||||
$(new-object System.Net.WebClient).DownloadFile("https://www.github.com/JFronny/UpTool2/releases/latest/download/Tools.zip", "$($(pwd).Path)\Tools.zip")
|
$(new-object System.Net.WebClient).DownloadFile("https://www.github.com/JFronny/UpTool2/releases/latest/download/Tools.zip", "$($(pwd).Path)\Tools.zip")
|
||||||
|
echo "unzip"
|
||||||
& "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip
|
& "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip
|
||||||
|
echo "remove leftovers"
|
||||||
rm Tools.zip
|
rm Tools.zip
|
||||||
rm Install.bat
|
rm Install.bat
|
||||||
rm Remove.bat
|
rm Remove.bat
|
||||||
|
echo "restore"
|
||||||
dotnet restore
|
dotnet restore
|
||||||
echo "BUILD
|
echo "build
|
||||||
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" -noLogo -verbosity:m -p:Configuration=Release
|
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" -noLogo -verbosity:m -p:Configuration=Release
|
||||||
echo "COPY"
|
echo "copy"
|
||||||
cp *\bin\Release\net461\package.zip .
|
cp *\bin\Release\net461\package.zip .
|
||||||
echo "GET_TIMESPAN"
|
echo "get timespan"
|
||||||
[timespan]$span = [System.DateTime]::Now - [datetime]'01/01/2000'
|
[timespan]$span = [System.DateTime]::Now - [datetime]'01/01/2000'
|
||||||
echo "GET_VERSION"
|
echo "get version"
|
||||||
[version]$ver = [version]("1.0." + $span.Days.ToString() + "." + ($span.Seconds / 2).ToString())
|
[version]$ver = [version]("1.0." + $span.Days.ToString() + "." + ($span.Seconds / 2).ToString())
|
||||||
echo "GET_STR"
|
echo "get version string"
|
||||||
$asmver = $ver.ToString()
|
$asmver = $ver.ToString()
|
||||||
echo "SET_STR"
|
echo "set output"
|
||||||
echo "::set-output name=vers::$asmver"
|
echo "::set-output name=vers::$asmver"
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|
Reference in New Issue