From a278415618d5ce4d37f458ea316ea96fa641e46a Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 21 Aug 2021 23:54:45 +0200 Subject: [PATCH] CI should now publish the project for windows64 and linux64. WIP --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd831404e..a38f60254 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ image: mcr.microsoft.com/dotnet/sdk:5.0 stages: - build - test + - publish variables: project: "NadekoBot" @@ -18,6 +19,15 @@ build: script: - "cd $build_path" - "dotnet build -c Release" + +publish: + stage: publish + variables: + build_path: "src" + script: + - "cd $build_path" + - "dotnet publish -c Release -r win7-x64 -o output-windows-x64 src/NadekoBot/NadekoBot.csproj" + - "dotnet publish -c Release -r linux-x64 -o output-linux-x64 src/NadekoBot/NadekoBot.csproj" test: stage: test