From 3bd245b27798cb8ee26607a8554be096c8cbce09 Mon Sep 17 00:00:00 2001 From: "J. Fronny" <6260391-JFronny@users.noreply.gitlab.com> Date: Sun, 13 Dec 2020 19:29:59 +0000 Subject: [PATCH] [attempt] install .net using dotnet-install --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 874cd83..e6e8688 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,9 @@ uptool: - .shared_windows_runners stage: deploy script: | + Invoke-WebRequest -Uri https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1 + Set-ExecutionPolicy Unrestricted -Scope Process + ./dotnet-install.ps1 -Channel 5.0 dotnet build --verbosity:m -p:Configuration=Release cp ".\UpTool build tool\bin\Release\netcoreapp3.1\package.zip" .\Tools.zip & "C:\Program Files\7-Zip\7z" a .\Release.zip .\UpTool2\bin\Release\netcoreapp3.1\UpTool2.exe