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

32 lines
888 B
YAML
Raw Normal View History

2020-06-18 14:24:33 +02:00
.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