diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index baf94309c7ff15eb90c265a57d1b27cb36f0537c..c0106531b2f1e4d935603a8b19db62d32c7ebabc 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 57fd578fbef1a37d083558e1f9825d1bf16683b8..1a06ca298726fd552459fd245a66e4034cc00964 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>` *