Search code examples
gitlab-cigitlab-pages

Is multiple pages job in gitlab CI possible?


I am using gitlab pages to deploy outputs from the jobs. I have 3 different jobs which produce html outputs. One job always runs. 2 other jobs are optional, thus they are manually run.

How is possible to deploy outputs of the manual jobs into pages in this situation? Can two different pages job be defined in gitlab ci?


Solution

  • If you define two different pages in gitlab ci, the last entry will be seen as pages job. Therefore, you need to handle your work inside a single pages job.