From a451fd06de21f652006d6081f46c08b497d3df9d Mon Sep 17 00:00:00 2001 From: Daniel Alejandro Gallegos Date: Fri, 22 Jul 2022 00:33:20 +0000 Subject: [PATCH] add gitlab cli deploy for pages --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..dd7a312 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +image: registry.gitlab.com/pages/hugo:latest + +variables: + GIT_SUBMODULE_STRATEGY: recursive + +test: + script: + - hugo + except: + variables: + - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + +pages: + script: + - hugo + artifacts: + paths: + - public + only: + variables: + - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH