From 05cf697b76bc8d125feaef6efaba045171211bb3 Mon Sep 17 00:00:00 2001 From: Olivier Demers Date: Thu, 23 Mar 2023 16:35:21 +0000 Subject: [PATCH] added ci --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d047daa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +default: + tags: + - docs + +stages: + - build + - deploy + +build: + stage: build + artifacts: + paths: + - build/ + script: + - npm install + - npm run build + +deploy: + stage: deploy + script: + - ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com docs build/* + environment: + name: docs + url: https://docs.pls5618.com \ No newline at end of file