Move build into the dotnet publish command during Linux deploy

Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
This commit is contained in:
Ritchie Frodomar 2024-07-21 22:41:34 -04:00
parent 9b775ff7f9
commit 54c8f40b3f

View file

@ -22,8 +22,7 @@ publish_linux:
stage: deploy
script: >
mkdir bin;
dotnet build -c release -r linux-x64 src;
dotnet publish src/SociallyDistant -r linux-x64 -c release --self-contained --no-build -o bin/linux-x64;
dotnet publish src/SociallyDistant -r linux-x64 -c release --self-contained -o bin/linux-x64;
artifacts:
name: socially-distant-linux-amd64-release
paths: