Update .gitlab-ci.yml

This commit is contained in:
J. Fronny 2020-06-20 11:16:00 +00:00
parent 4afa77abca
commit 651992285c
1 changed files with 7 additions and 9 deletions

View File

@ -1,7 +1,6 @@
.shared_windows_runners:
tags:
- windows
- x86_64
before_script:
- dotnet restore
@ -48,12 +47,13 @@ uptool:
$app.appendChild($xml.CreateElement("InstallerHash")).InnerText = $(Get-FileHash .\Installer-generic.zip).Hash
echo NULL > meta.xml
$xml.save($(gi .\meta.xml).Fullname)
cd Installer
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
dotnet publish -r win-x86 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
cp .\bin\Release\netcoreapp3.1\win-x64\publish\Installer.exe ..\Installer-x64.exe
cp .\bin\Release\netcoreapp3.1\win-x86\publish\Installer.exe ..\Installer-x86.exe
cd ..
#cd Installer
#dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
#dotnet publish -r win-x86 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
#cp .\bin\Release\netcoreapp3.1\win-x64\publish\Installer.exe ..\Installer-x64.exe
#cp .\bin\Release\netcoreapp3.1\win-x86\publish\Installer.exe ..\Installer-x86.exe
#cd ..
#Installer-x64 and Installer-x86 were also originally artifacts but there doesn't seem to be a x86-64 windows runner
artifacts:
paths:
- Release.zip
@ -61,7 +61,5 @@ uptool:
- Installer-generic.zip
- meta.xml
- tools.xml
- Installer-x86.exe
- Installer-x64.exe
only:
- master