From d0c17f77cfafb60101252619348544e24e10a07e Mon Sep 17 00:00:00 2001 From: James Cahill Date: Fri, 23 Jun 2023 15:28:49 +0100 Subject: [PATCH] (ci/gitlab): Add .gitlab-ci.yml from iGEM 2022 --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..3a9d89f1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: node:latest + +# This folder is cached between builds +# https://docs.gitlab.com/ce/ci/yaml/README.html#cache +cache: + paths: + - node_modules/ + # Enables git-lab CI caching. Both .cache and public must be cached, otherwise builds will fail. + - .cache/ + - public/ + +pages: + stage: build + script: + - npm install + - npm run clean + - npm run build + artifacts: + paths: + - public + only: + - main \ No newline at end of file