From fb701d09ac211c859903356bcce2bc7cf20a07c1 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Sun, 8 Aug 2021 23:25:54 -0700 Subject: [PATCH] file: create .gitlab-ci.yml --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b942215 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +build website: + stage: build + # requiring the environment of NodeJS 4.2.2 + image: node:latest + # add 'node_modules' to cache for speeding up builds + cache: + paths: + - node_modules/ # Node modules and dependencies + script: + - npm install -g hexo-cli # Install Hexo itself + - npm install # Install Hexo modules and dependencies + - hexo version + # the 'pages' job will deploy and build your site to the 'public' path + artifacts: + paths: + - public