fuzzyworld

godot-shooter / commit

Revert "Trying to combine the two stages into one, since most of the current build time is just waiting around."

9c1a88cd27b504056f97d8460c1c436f81ebf1f4 · Pavel Safronov · 2023-11-05 17:06:45 -0800 · parents accf94741276

Revert "Trying to combine the two stages into one, since most of the current build time is just waiting around."

This reverts commit accf9474127625ccce74293f27ce3299b391d3d8.
 .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