Update .gitlab-ci.yml file
This commit is contained in:
parent
863109e3d2
commit
ae841e3cb2
@ -1,20 +1,14 @@
|
|||||||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
test:
|
|
||||||
script:
|
|
||||||
- hugo
|
|
||||||
except:
|
|
||||||
variables:
|
|
||||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
||||||
interruptible: true
|
|
||||||
pages:
|
pages:
|
||||||
script:
|
script:
|
||||||
- hugo --gc --minify --cleanDestinationDir
|
- hugo --gc --minify
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
only:
|
rules:
|
||||||
variables:
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
||||||
interruptible: true
|
interruptible: true
|
Loading…
x
Reference in New Issue
Block a user