I have set up GitLab YAML file as below.
stages: - build - publish before_script: - "dotnet restore" build: stage: build script: