Clean up main.yml a bit

This commit is contained in:
J. Fronny 2020-03-13 20:47:03 +01:00 committed by GitHub
parent 81840fe0e8
commit 07d8649bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,19 +18,11 @@ jobs:
run: | run: |
cd $Env:GITHUB_WORKSPACE cd $Env:GITHUB_WORKSPACE
nuget restore nuget restore
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\" & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" -noLogo -verbosity:m .\UpTool2.sln -p:Configuration=Release
.\MSBuild.exe -noLogo -verbosity:m $Env:GITHUB_WORKSPACE\UpTool2.sln -p:Configuration=Release cp ".\UpTool build tool\bin\Release\netcoreapp3.1\package.zip" $Env:GITHUB_WORKSPACE\Tools.zip
cp "$Env:GITHUB_WORKSPACE\UpTool build tool\bin\Release\netcoreapp3.1\package.zip" $Env:GITHUB_WORKSPACE\Tools.zip & "C:\Program Files\7-Zip\7z" a .\Release.zip .\UpTool2\bin\Release\netcoreapp3.1
cd "C:\Program Files\7-Zip\" $asmver = $([Reflection.Assembly]::Loadfile($(pwd).Path + "\\UpTool2\\bin\\Release\\netcoreapp3.1\\UpTool2.dll").GetName().version.ToString())
.\7z a $Env:GITHUB_WORKSPACE\Release.zip $Env:GITHUB_WORKSPACE\UpTool2\bin\Release\netcoreapp3.1 $pkgtoolver = $([Reflection.Assembly]::Loadfile($(pwd).Path + "\\UpTool build tool\\bin\\Release\\netcoreapp3.1\\pkgtool.dll").GetName().version.ToString())
cd $Env:GITHUB_WORKSPACE\UpTool2\bin\Release\netcoreapp3.1
ls
echo "UpTool version"
$asmver = $([Reflection.Assembly]::Loadfile($(pwd).Path + "\\UpTool2.dll").GetName().version.ToString())
echo "pkgtool version"
cd "$Env:GITHUB_WORKSPACE\UpTool build tool\bin\Release\netcoreapp3.1"
$pkgtoolver = $([Reflection.Assembly]::Loadfile($(pwd).Path + "\\pkgtool.dll").GetName().version.ToString())
cd $Env:GITHUB_WORKSPACE
echo "::set-output name=vers::$asmver" echo "::set-output name=vers::$asmver"
echo "::set-output name=pkgvers::$pkgtoolver" echo "::set-output name=pkgvers::$pkgtoolver"
- name: Create Release - name: Create Release