forked from heroiclabs/fishgame-godot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
77 lines (66 loc) · 1.58 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
image: barichello/godot-ci:3.2.3
variables:
EXPORT_NAME: fish-game
stages:
- export
- deploy
.export_before_script: &export_before_script
before_script:
- apt-get update
- apt-get install -y --no-install-recommends ca-certificates unzip wget
# Put in the production Nakama info
- ./scripts/generate-build-variables.sh
windows:
<<: *export_before_script
stage: export
script:
- mkdir -v -p build/windows
- godot -v --export "Windows Desktop" ./build/windows/$EXPORT_NAME.exe
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/windows
linux:
<<: *export_before_script
stage: export
script:
- mkdir -v -p build/linux
- godot -v --export "Linux/X11" ./build/linux/$EXPORT_NAME.x86_64
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/linux
macosx:
<<: *export_before_script
stage: export
script:
- mkdir -v -p build/macosx
- godot -v --export "Mac OSX" ./build/macosx/$EXPORT_NAME.zip
# Extract the zip file since GitLab CI will zip it up again.
- (cd ./build/macosx && unzip -a $EXPORT_NAME.zip && rm $EXPORT_NAME.zip)
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/macosx
web:
<<: *export_before_script
stage: export
script:
- mkdir -v -p build/web
- godot -v --export "HTML5" ./build/web/index.html
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/web
pages:
stage: deploy
dependencies:
- web
script:
- rm -rf public
- cp -r build/web public
artifacts:
paths:
- public
only:
- develop