Update .gitlab-ci.yml
This commit is contained in:
parent
ab66f06b68
commit
e565b4c95b
|
@ -11,19 +11,19 @@ before_script:
|
|||
|
||||
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()
|
||||
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
|
||||
|
|
Reference in New Issue