From febe7ff9cb91c46dcdd387c2b01374dad3793b5e Mon Sep 17 00:00:00 2001 From: "J. Fronny" <6260391-JFronny@users.noreply.gitlab.com> Date: Mon, 31 Aug 2020 18:59:37 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2797e90..cc44e63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,21 +2,26 @@ tags: - windows -before_script: - - dotnet restore - uptool: extends: - .shared_windows_runners stage: deploy script: | - $(new-object System.Net.WebClient).DownloadFile("https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/Tools.zip?job=uptool", "$($(pwd).Path)\Tools.zip") - & "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip - rm Tools.zip - rm Install.bat - rm Remove.bat + mkdir i + cd i + $(new-object System.Net.WebClient).DownloadFile("https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/Installer-generic.zip?job=uptool", "$($(pwd).Path)\Install.zip") + & "C:\Program Files\7-Zip\7z.exe" x .\Install.zip + .\Installer.exe i -p + cd .. + rm -R i + $Env:Path="$Env:Path;$Env:APPDATA\UpTool2\Install" + uptool --basic remove-repo "UpTool2 official Repo" + uptool --basic add-repo DevTools https://gitlab.com/JFronny/UpTool2/-/snippets/2010392/raw + uptool --basic update + uptool --basic install "UpTool2 package tools" + $Env:Path="$Env:Path;$Env:APPDATA\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app" + mkdir .\build - #dotnet publish -o .\build -c Release & "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" -noLogo -verbosity:m -p:Configuration=Release cp .\cashew\bin\Release\net461\* .\build\ cp .\build\package.zip .\