forked from CaptainPStar/co10_Escape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
81 lines (74 loc) · 1.48 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
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive --depth 50
stages:
- build
- deploy
compile:
stage: build
script:
- "mkdir Build"
- "mkdir Packed"
- "cd Packed"
- "mkdir Missions"
- "cd .."
- "python ./compile.py"
when: delayed
start_in: 1 minutes
cache:
key: "%CI_COMMIT_REF_SLUG%"
policy: push
paths:
- Packed/Missions
- Packed/Addons
only:
refs:
- master
- staging
- merge_requests
- tags
staging:
stage: deploy
script:
- "echo Deploying development build..."
- "copy .\\readme.txt .\\Packed\\Missions\\readme.txt"
- "copy .\\readme.txt .\\Packed\\Addons\\readme.txt"
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- Packed/Missions
- Packed/Addons
policy: pull
dependencies:
- compile
artifacts:
name: "co10_Escape-%CI_COMMIT_REF_SLUG%-%CI_COMMIT_SHA%"
paths:
- Packed/Missions
- Packed/Addons
only:
refs:
- master
- staging
- merge_requests
release:
stage: deploy
script:
- "echo Deploying %CI_COMMIT_TAG% tag..."
- "copy .\\readme.txt .\\Packed\\Missions\\readme.txt"
- "copy .\\readme.txt .\\Packed\\Addons\\readme.txt"
cache:
key: "%CI_COMMIT_REF_SLUG%"
paths:
- Packed/Missions
- Packed/Addons
policy: pull
dependencies:
- compile
artifacts:
name: "co10_Escape-%CI_COMMIT_TAG"
paths:
- Packed/Missions
- Packed/Addons
only:
- tags