32 lines
888 B
YAML
32 lines
888 B
YAML
.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
|