-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
81 lines (73 loc) · 1.47 KB
/
.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
variables:
DOCFX_SOURCE_BRANCH_NAME: $CI_BUILD_REF_NAME
stages:
- build
- release
build_lib_test:
stage: build
image: mcr.microsoft.com/dotnet/core/sdk:3.1-buster
script:
- ./build.sh
tags:
- docker
except:
- tags
build_lib_release:
stage: build
image: mcr.microsoft.com/dotnet/core/sdk:3.1-buster
script:
- export BUILD_VERSION=$(echo $CI_COMMIT_REF_NAME | sed 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\)\-release$/\1/g')
- echo $BUILD_VERSION
- sed -i -e "s/0.5.1.0/$BUILD_VERSION.0/g" build/Rayark.Mast.csproj
- ./build.sh
artifacts:
expire_in: 5 yrs
name: mast-unity-project
paths:
- pack
tags:
- docker
only:
- /^.*-release$/
mast-release:
stage: release
image: bash
script:
- cp pack/Assets/Plugins/Rayark/Mast/Rayark.Mast.dll .
artifacts:
expire_in: 5 yrs
paths:
- Rayark.Mast.dll
dependencies:
- build_lib_release
tags:
- docker
only:
- /^.*-release$/
document:
stage: build
image: alvinsay/docfx:2.32.1
script:
- docfx doc/docfx.json
- mv doc/_site public
artifacts:
expire_in: 5 yrs
paths:
- public # Upload the directory
tags:
- docker
only:
- /^.*-release$/
pages:
stage: release
image: alvinsay/docfx:2.32.1
script:
- docfx doc/docfx.json
- mv doc/_site public
artifacts:
paths:
- public # Upload the directory
tags:
- docker
only:
- master