Update CI configuration and assembly information; remove log file and add logo image
This commit is contained in:
parent
d068b4b3e1
commit
900e8b6bf8
6 changed files with 12 additions and 146 deletions
|
|
@ -88,7 +88,7 @@ build_windows:
|
|||
}
|
||||
artifacts:
|
||||
paths:
|
||||
- "**/bin/$BUILD_CONFIG/net10.0-windows/**"
|
||||
- "imagecatalog/bin/$BUILD_CONFIG/net10.0-windows/**"
|
||||
expire_in: 1 hour
|
||||
|
||||
# Publish and create GitLab Release when building a tag. This job expects a Windows runner with PowerShell and curl available.
|
||||
|
|
@ -112,7 +112,7 @@ publish_release:
|
|||
$dotnetExe = 'dotnet'
|
||||
}
|
||||
|
||||
& $dotnetExe publish "imagecatalog\ImageCatalog 2.csproj" -c $env:BUILD_CONFIG -r win-x64 --self-contained false -o publish
|
||||
& $dotnetExe publish "imagecatalog\ImageCatalog 2.csproj" -c $env:BUILD_CONFIG -f net10.0-windows -r win-x64 --self-contained false /p:PublishSingleFile=true /p:PublishReadyToRun=true -o publish
|
||||
Write-Host "Published to $(pwd)\\publish"
|
||||
|
||||
# Configure private NuGet source from GitLab Packages using CI_JOB_TOKEN
|
||||
|
|
@ -130,8 +130,10 @@ publish_release:
|
|||
Write-Host 'No credentials available; skipping private NuGet source configuration.'
|
||||
}
|
||||
|
||||
# Find first file in publish folder
|
||||
$file = Get-ChildItem -Path publish -File | Select-Object -First 1; Write-Host "Uploading $($file.FullName)"
|
||||
# Find the produced EXE in publish folder (fallback to first file if no exe found)
|
||||
$file = Get-ChildItem -Path publish -Filter *.exe -File | Select-Object -First 1
|
||||
if (-not $file) { $file = Get-ChildItem -Path publish -File | Select-Object -First 1 }
|
||||
Write-Host "Uploading $($file.FullName)"
|
||||
# Upload to GitLab project uploads API to get a public URL for the artifact
|
||||
$uploadUrl = "$env:CI_API_V4_URL/projects/$env:CI_PROJECT_ID/uploads"
|
||||
$formData = "file=@$($file.FullName)"
|
||||
|
|
@ -145,7 +147,7 @@ publish_release:
|
|||
}
|
||||
artifacts:
|
||||
paths:
|
||||
- publish/*
|
||||
- publish/*.exe
|
||||
expire_in: 1 day
|
||||
only:
|
||||
- tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue