This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
GradeCalc/.gitlab-ci.yml

33 lines
836 B
YAML

.shared_windows_runners:
tags:
- shared-windows
- windows
- windows-1809
image: mcr.microsoft.com/dotnet/core/sdk
before_script:
- dotnet restore
uptool:
extends:
- .shared_windows_runners
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
mkdir .\build
dotnet publish -o .\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