Add ability to kick off a Pages deploy from a job not named pages
Original Issue Title: pages:deploy not getting triggered when using hidden pages job
Hi Team, To support monorepo I am using include and extends directive in the root .gitlab-ci.yml file to further call the child .gitlab-ci.yml file. Below are the sample of root and child .gitlab-ci.yml files
Root .gilab-ci.yml file
stages:
- test
- pages
- build
include:
- local: 'license-service/.gitlab-ci.yml'
license-service-test:
stage: test
extends: .license-test
license-service-pages:
stage: pages
dependencies:
- license-service-test
extends: .license-pages
Child .gitlab-ci.yml file
.license-test:
image: ${DOCKER_PROXY_HOST}/golang:${GO_VERSION}
artifacts:
paths:
- ${CI_PROJECT_DIR}/license-service/build/tests/test-results.xml
expire_in: 3d
script:
- gotestsum --junitfile build/tests/test-results.xml
.license-pages:
extends: .license-template
artifacts:
paths:
- public
script:
- mkdir .public
- cp -r ${CI_PROJECT_DIR}/license-service/build/tests/test-results.xml .public
- mv .public public
Both the jobs are executing successfully and I am also able to browse/download the artifacts, but this setup doesn't trigger the deploye:pages job which is required to push the content on gitlab pages. Am i doing something wrong.
Edited by Darby Frey