diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 77ae4e7..4ed4dd5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,40 @@
image: mcr.microsoft.com/dotnet/sdk:9.0
stages:
+ - build
+ - test
+ - publish
- publish-help
+build:
+ stage: build
+ script:
+ - dotnet restore
+ - dotnet build --configuration Release --no-restore
+ artifacts:
+ paths:
+ - "**/bin/Release"
+ expire_in: 10 minutes
+
+test:
+ stage: test
+ script:
+ - dotnet test --verbosity normal
+ dependencies:
+ - build
+
+publish:
+ stage: publish
+ script:
+ - export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
+ - dotnet pack -c Release -o . /p:Version=$VERSION
+ - for nupkg in *.nupkg; do dotnet nuget push $nupkg -k ${NUGET_API_KEY} -s https://api.nuget.org/v3/index.json; done
+ only:
+ - tags
+ dependencies:
+ - build
+ - test
+
publish-help:
stage: publish-help
image: docker:latest
@@ -18,3 +50,5 @@ publish-help:
- docker push registry.leon-hoppe.de/leon.hoppe/hopframe:latest
only:
- tags
+ dependencies:
+ - publish
diff --git a/.idea/.idea.HopFrame/.idea/workspace.xml b/.idea/.idea.HopFrame/.idea/workspace.xml
index c82bd6e..fe26cba 100644
--- a/.idea/.idea.HopFrame/.idea/workspace.xml
+++ b/.idea/.idea.HopFrame/.idea/workspace.xml
@@ -11,10 +11,9 @@
-
+
+
-
-
@@ -34,7 +33,7 @@
@@ -130,7 +129,7 @@
"RunOnceActivity.git.unshallow": "true",
"b5f11219-dfc4-47a1-b02c-90ab603034fb.executor": "Debug",
"dcdf1689-dc07-47e4-8824-2e60a4fbf301.executor": "Debug",
- "git-widget-placeholder": "!33 on feature/exporters",
+ "git-widget-placeholder": "dev",
"list.type.of.created.stylesheet": "CSS",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
@@ -258,6 +257,8 @@
+
+
@@ -611,7 +612,39 @@
1740741334420
-
+
+
+ 1740742170465
+
+
+
+ 1740742170465
+
+
+
+ 1740742538991
+
+
+
+ 1740742538991
+
+
+
+ 1740742606152
+
+
+
+ 1740742606152
+
+
+
+ 1740742749325
+
+
+
+ 1740742749325
+
+
@@ -662,10 +695,6 @@
-
-
-
-
@@ -687,6 +716,10 @@
-
+
+
+
+
+
\ No newline at end of file