From 4c183b3a84940be496bc477d029597f0b8ffb85f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 22 Aug 2021 16:32:26 -0500 Subject: [PATCH] GitLab CI: cache build directory between jobs --- .gitlab-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1daf9a1529..57ac09f54f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,11 +4,14 @@ variables: NODE_ENV: test cache: - key: - files: - - yarn.lock - paths: - - node_modules + - key: + files: + - yarn.lock + paths: + - node_modules + - key: $CI_COMMIT_REF_NAME + paths: + - static stages: - lint @@ -88,8 +91,8 @@ docs-deploy: pages: stage: deploy + before_script: [] script: - - yarn build - mv static public - cp public/{index.html,404.html} variables: