From 6ede9457b4bbe338bee55c4509350db1910e0fec Mon Sep 17 00:00:00 2001 From: Christopher Krawietz <krawietz@new-communication.de> Date: Thu, 3 Jun 2021 13:11:43 +0200 Subject: [PATCH] =?UTF-8?q?[TASK]=20=E2=80=94=20Delete=20public=20before?= =?UTF-8?q?=20build=20and=20add=20expire=20date=20for=20artefacts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 5 +++++ src/.vuepress/config.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index baf9430..c010653 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,10 +15,15 @@ linting: deploy: stage: deploy image: node:14.15.1 + cache: + paths: + - node_modules/ script: - yarn install + - rm -rf public - yarn build artifacts: + expire_in: 1 day paths: - public only: diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index 57fd578..1a06ca2 100755 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -12,6 +12,8 @@ module.exports = { base: '/', dest: 'public', + publicPath: process.env.NODE_ENV === 'production' ? '/design-system.sh/' : '/', + /** * Extra tags to be injected to the page HTML `<head>` * -- GitLab