add gitlab cli deploy for pages

This commit is contained in:
Daniel Alejandro Gallegos 2022-07-22 00:33:20 +00:00
parent 0000169f9c
commit a451fd06de

21
.gitlab-ci.yml Normal file
View file

@ -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