From aea0f22895cbcb67d7fc84a9c0950dde46cfac22 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Tue, 13 Jul 2021 19:05:46 +0200 Subject: [PATCH] Add CI script --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..52a80e3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +image: npm:14 + +pages: + stage: deploy + script: + - echo Compile project + - npm install + - npm run build + - echo Overwrite configuration + - echo "{\"api_url\":\"https://api.communiquons.org/admin/\"}" > build/config.json + - echo Create 404 page + - cp build/index.html build/404.html + artifacts: + paths: + - build + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH