From 988cdb272df5c49e6fb53274db99e8debb83dae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Wed, 25 Sep 2019 22:00:54 +0000 Subject: [PATCH 1/2] Add .gitlab-ci.yml --- .gitlab-ci.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2cf1afb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,47 @@ +image: barichello/godot-ci:3.1.1 + +stages: + - export + - deploy + +before_script: + - mkdir -v -p build/linux + - mkdir -v -p build/windows + - mkdir -v -p build/mac + - mkdir -v -p build/web + +linux: + stage: export + script: + - godot -v --export "Linux/X11" ./build/linux/$EXPORT_NAME.x86_64 + artifacts: + name: $EXPORT_NAME-$CI_JOB_NAME + paths: + - build/linux + +windows: + stage: export + script: + - godot -v --export "Windows Desktop" ./build/windows/$EXPORT_NAME.exe + artifacts: + name: $EXPORT_NAME-$CI_JOB_NAME + paths: + - build/windows + +mac: + stage: export + script: + - godot -v --export "Mac OSX" ./build/mac/$EXPORT_NAME.zip + artifacts: + name: $EXPORT_NAME-$CI_JOB_NAME + paths: + - build/mac + +web: + stage: export + script: + - godot -v --export "HTML5" ./build/web/index.html + artifacts: + name: $EXPORT_NAME-$CI_JOB_NAME + paths: + - build/web \ No newline at end of file From f3275f7fd3b50872da7c2c45722a71df20531d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Wed, 25 Sep 2019 22:08:09 +0000 Subject: [PATCH 2/2] Update .gitlab-ci.yml --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2cf1afb..ec660a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,4 +44,17 @@ web: artifacts: name: $EXPORT_NAME-$CI_JOB_NAME paths: - - build/web \ No newline at end of file + - build/web + +pages: + stage: deploy + script: + - mv build/web public + artifacts: + paths: + - public + only: + refs: + - master + needs: + - web \ No newline at end of file