fuzzyworld

godot-shooter / godot-4-testing / files / .gitlab-ci.yml

Branch godot-4-testing · default branch · all branches

.gitlab-ci.yml

714 B · history · blame

1# modified from https://github.com/Razzlegames/GodotTutorialsPlatformer/blob/GitlabCiTutorial/.gitlab-ci.yml
2
3image: barichello/godot-ci:4.1.2
4
5variables:
6 EXPORT_NAME: shooter
7
8stages:
9 - export
10 - deploy
11
12before_script:
13 - apt-get update -qq && apt-get install -y libx11-dev
14 - mkdir -v -p build/web
15
16web:
17 stage: export
18 script:
19 - echo "The site will be deployed to $CI_PAGES_URL"
20 - godot --rendering-driver opengl3 -v --export-debug "HTML5" ./build/web/index.html
21 artifacts:
22 name: $EXPORT_NAME-$CI_JOB_NAME
23 paths:
24 - build/web
25
26pages:
27 stage: deploy
28 dependencies:
29 - web
30 script:
31 - mkdir -p public
32 - cp build/web/* public/ -R
33 artifacts:
34 paths:
35 - public