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