From 19df48ee5c780a7212db0af6f877ec0e1fe086e2 Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Sun, 15 Feb 2026 18:17:16 +0100 Subject: [PATCH] Added gitlab automation information --- .gitlab-ci.yml | 40 ++++++++++++++++++++ GitVersion.yml | 22 +++++++++++ src/AIFotoONLUS.Core/AIFotoONLUS.Core.csproj | 15 ++++++++ 3 files changed, 77 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 GitVersion.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9b9323c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,40 @@ +stages: + - build + - publish + +variables: + DOTNET_CLI_TELEMETRY_OPTOUT: "1" + DOTNET_NOLOGO: "true" + +image: mcr.microsoft.com/dotnet/sdk:8.0 + +before_script: + - dotnet --info + +build: + stage: build + script: + - dotnet restore + - dotnet build --configuration Release --no-restore + artifacts: + paths: + - src/AIFotoONLUS.Core/bin/** + expire_in: 1 hour + +publish_nuget: + stage: publish + image: mcr.microsoft.com/dotnet/sdk:8.0 + variables: + NUGET_SOURCE: "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/nuget/index.json" + script: + - dotnet restore + - dotnet tool install --global GitVersion.Tool --version 5.13.0 || true + - export PATH="$PATH:~/.dotnet/tools" + - gitversion /output buildserver + - echo "GitVersion_NuGetVersionV2=$GitVersion_NuGetVersionV2" + - dotnet pack src/AIFotoONLUS.Core/AIFotoONLUS.Core.csproj -c Release -o nuget --no-build + - dotnet nuget push "nuget/*.nupkg" --source "$NUGET_SOURCE" --api-key "$CI_JOB_TOKEN" --skip-duplicate + only: + - main + - master + - tags diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..a87f49f --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,22 @@ +mode: ContinuousDelivery +branches: + main: + regex: ^main$ + increment: Minor + prevent-increment-of-merged-branch-version: true + track-merge-target: false + master: + regex: ^master$ + increment: Minor + prevent-increment-of-merged-branch-version: true + track-merge-target: false + feature: + regex: ^(?:feat(?:ure)?|feature)[/\\-] + increment: Minor + source-branches: ["main", "master"] + hotfix: + regex: ^hotfix[/\\-] + increment: Patch +ignore: + sha: [] +commit-message-incrementing: Enabled \ No newline at end of file diff --git a/src/AIFotoONLUS.Core/AIFotoONLUS.Core.csproj b/src/AIFotoONLUS.Core/AIFotoONLUS.Core.csproj index b054056..0cdd692 100644 --- a/src/AIFotoONLUS.Core/AIFotoONLUS.Core.csproj +++ b/src/AIFotoONLUS.Core/AIFotoONLUS.Core.csproj @@ -4,10 +4,25 @@ enable enable + + + AIFotoONLUS.Core + Maddo + Maddo + Core library for AIFotoONLUS image processing and recognition. + https://gitlab.com/MaddoScientisto/aifotoonlus + + $(GitVersion_NuGetVersionV2) + See Git history for release notes. + true + false + + +