sociallydistant/.gitlab-ci.yml

31 lines
1.1 KiB
YAML
Raw Normal View History

2024-07-21 20:39:45 -04:00
stages:
- build
- deploy
2024-07-21 20:39:45 -04:00
dco_check:
stage: build
2024-07-21 21:06:23 -04:00
script: >
echo $CI_COMMIT_MESSAGE | grep "Signed-off-by: $CI_COMMIT_AUTHOR"
# Makes sure the base game compiles.
build_base:
stage: build
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
script:
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
- dotnet build -c release src
publish_linux:
stage: deploy
image: cr.acidiclight.dev/docker-images/monogame-linux-build/dotnet-mgcb:latest
script:
- mkdir bin;
- if (dotnet nuget list source | grep gitlab); then dotnet nuget remove source gitlab; fi
- dotnet nuget add source -n gitlab https://gitlab.acidiclight.dev/api/v4/projects/13/packages/nuget/index.json
- dotnet publish src/SociallyDistant -r linux-x64 -c release --self-contained -o bin/linux-x64;
artifacts:
name: socially-distant-linux-amd64-release
paths:
- bin/linux-x64