From 5f95f91e80f71b24248a544c4127e08420a96964 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Wed, 27 Dec 2023 11:10:18 -0600 Subject: [PATCH] Initial commit --- .gitignore | 3 ++- .gitlab-ci.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitignore b/.gitignore index ba3bcda..cb6a112 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ data/emailbox.db bin/ obj/ .vscode/ -.vs/ \ No newline at end of file +.vs/ +publish/ \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1543f55 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +stages: + - build + +build: + image: mcr.microsoft.com/dotnet/sdk:7.0.400-jammy-amd64 + stage: build + only: + - master + artifacts: + paths: + - publish + script: + - cp -r data publish/data + - dotnet publish -o publish --self-contained -p:PublishReadyToRun=true -p:PublishSingleFile=true -c Release