I'm using the Hugo framework to deploy GitLab pages. As described in another post, it seems to be possible to publish pages for multiple branches.
I tried to integrate the code provided in the post, but it doesn't work.
My original gitlab-ci.yml
looks like:
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apk add --update --no-cache git
test:
script:
- hugo --gc --minify
except:
- master
pages:
script:
- hugo --gc --minify
artifacts:
paths:
- public
only:
- master
Is it possible, to deploy pages for every branch when using hugo? What do i need to change to achieve this?