-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
53 lines (49 loc) · 990 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
stages:
- ci
- publish
default:
before_script:
- dotnet tool install --global Cake.Tool --version 0.38.1
- export PATH="$PATH:/root/.dotnet/tools"
ci:
stage: ci
image: mcr.microsoft.com/dotnet/core/sdk:3.1
script:
- dotnet-cake --bootstrap
- dotnet-cake
artifacts:
reports:
junit: out/test-results/*.xml
paths:
- artifacts/
expire_in: 60 min
prerelease:
stage: publish
image: mcr.microsoft.com/dotnet/core/sdk:3.1
script:
- dotnet-cake --bootstrap
- dotnet-cake -Target=Publish -BuildType=prerelease
dependencies:
- ci
artifacts:
paths:
- artifacts/
expire_in: 60 min
when: manual
only:
- master
release:
stage: publish
image: mcr.microsoft.com/dotnet/core/sdk:3.1
script:
- dotnet-cake --bootstrap
- dotnet-cake -Target=Publish -BuildType=release
dependencies:
- ci
artifacts:
paths:
- artifacts/
expire_in: 60 min
when: manual
only:
- master