godot-shooter / commit
Revert "Trying to combine the two stages into one, since most of the current build time is just waiting around."
.gitlab-ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 04349c3..7e013bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,19 +6,29 @@ variables: EXPORT_NAME: shooter stages: - - build_and_deploy + - export + - deploy before_script: - mkdir -v -p build/web -build_and_deploy: - stage: build_and_deploy +web: + stage: export script: - echo "The site will be deployed to $CI_PAGES_URL" - godot -v --export "HTML5" ./build/web/index.html + artifacts: + name: $EXPORT_NAME-$CI_JOB_NAME + paths: + - build/web + +pages: + stage: deploy + dependencies: + - web + script: - mkdir -p public - cp build/web/* public/ -R artifacts: - name: $EXPORT_NAME-$CI_JOB_NAME paths: - - public \ No newline at end of file + - public