From 776b055cfb3e3b204e4dc82ae09146f21c2214f5 Mon Sep 17 00:00:00 2001 From: Leon Hoppe Date: Sat, 23 Nov 2024 16:05:57 +0100 Subject: [PATCH] Added readme to HopFrame.Web.Admin.csproj + added ci scripts --- gitlab-ci.yml | 34 +++++++++++++++++++ .../HopFrame.Web.Admin.csproj | 4 +++ 2 files changed, 38 insertions(+) create mode 100644 gitlab-ci.yml diff --git a/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000..3f0cd38 --- /dev/null +++ b/gitlab-ci.yml @@ -0,0 +1,34 @@ +image: mcr.microsoft.com/dotnet/core/sdk:3.1 + +stages: + - build + - test + - publish + +before_script: + - echo "Setting up environment" + - 'dotnet --version' + +build: + stage: build + script: + - dotnet restore + - dotnet build --configuration Release --no-restore + artifacts: + paths: + - "**/bin/Release" + +test: + stage: test + script: + - dotnet test --no-restore --verbosity normal + +publish: + stage: publish + script: + - dotnet pack -c Release -o . + - for nupkg in *.nupkg; do dotnet nuget push $nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json; done + only: + - main + variables: + NUGET_API_KEY: $NUGET_API_KEY diff --git a/src/HopFrame.Web.Admin/HopFrame.Web.Admin.csproj b/src/HopFrame.Web.Admin/HopFrame.Web.Admin.csproj index ab89ff0..e1a0004 100644 --- a/src/HopFrame.Web.Admin/HopFrame.Web.Admin.csproj +++ b/src/HopFrame.Web.Admin/HopFrame.Web.Admin.csproj @@ -16,4 +16,8 @@ + + + +