.gitlab-ci.yml 689 Bytes
Newer Older
Max Maton's avatar
Max Maton committed
1
image: mono:latest
Max Maton's avatar
Max Maton committed
2 3 4

stages:
  - build
Max Maton's avatar
Max Maton committed
5
  - publish
Max Maton's avatar
Max Maton committed
6 7 8 9 10 11

build:
  stage: build
  script:
    - nuget restore QCQuickStart.sln
    - xbuild /t:Build /p:Configuration="Release" /p:Platform="Any CPU" QCQuickStart.sln
Max Maton's avatar
Max Maton committed
12 13
  artifacts:
    paths:
Max Maton's avatar
Max Maton committed
14
      - QCQuickStart/bin/Release/QCQuickStart.exe
Max Maton's avatar
Max Maton committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28

pages:
  stage: publish
  only: 
    - master
  dependencies:
    - build
  environment:
    name: gitlab-pages
    url: http://empires_public.docs.empiresmod.com/QCQuickStart/
  artifacts:
    paths:
      - public
  script:
Max Maton's avatar
Max Maton committed
29
    - apt-get update
Max Maton's avatar
Max Maton committed
30
    - apt-get --yes install markdown
Max Maton's avatar
Max Maton committed
31
    - mkdir public
Max Maton's avatar
Max Maton committed
32
    - cp QCQuickStart/bin/Release/QCQuickStart.exe public
Max Maton's avatar
Max Maton committed
33
    - markdown README.md > public/index.html