But does it build?

This commit is contained in:
J. Fronny 2020-06-18 12:24:33 +00:00
parent 31e5e0de76
commit 6afb9b4130
1 changed files with 31 additions and 0 deletions

31
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,31 @@
.shared_windows_runners:
tags:
- shared-windows
- windows
- windows-1909
image: mcr.microsoft.com/dotnet/core/sdk
before_script:
- dotnet restore
uptool:
stage: deploy
script:
- $(new-object System.Net.WebClient).DownloadFile("https://www.github.com/JFronny/UpTool2/releases/latest/download/Tools.zip", "$($(pwd).Path)\Tools.zip")
- & "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip
- rm Tools.zip
- rm Install.bat
- rm Remove.bat
- dotnet build --verbosity:m -p:Configuration=Release
- mkdir build
- cp *\bin\Release\netcoreapp3.1\* .\build
- cp .\build\package.zip .
- $file = Get-Item $(Resolve-Path .\build\*.exe).Path
- $asm = $([Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll"))
- $asmver = $asm.GetName().Version.ToString()
artifacts:
paths:
- build
only:
- master