Deploying GitLab pages for different branches

I’ve had success using the browsable artifacts for this purpose. In your example, you would create a job for your develop branch and set the PUBLIC_URL to the path on gitlab.io where the job’s artifacts are published: develop: artifacts: paths: – public environment: name: Develop url: “https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/index.html” script: | # whatever stage: deploy variables: PUBLIC_URL: … Read more