.gitlab-ci.yml 448 Bytes
Newer Older
HankG's avatar
HankG committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
image: mcr.microsoft.com/dotnet/core/sdk:latest

stages:
  - test
  - deploy

release:
  stage: deploy
  only:
    - master
  artifacts:
    paths:
      - publish/
  script:
    # The output path is relative to the position of the csproj-file
    - dotnet publish -c Release -o ../../publish MySocialPortalLib/MySocialPortalLib/MySocialPortalLib.csproj
    
debug:
  stage: test
  script:
    - dotnet test MySocialPortalLib/MySocialPortalLib.sln