Pages not appearing in Settings after build

Hey there, I’ve run into a problem with my GitLab pages build.

  1. The pipeline is going through,
  2. Artifacts are available in the public directory,
  3. The gitlab pages is available on *.gitlab.io domain,
  4. The Pages setting is not available in Settings.

Because the setting is not available, I cannot set my custom domain.
Here is the gitlab-ci.yml file.

image: ruby:2.6

variables:
  JEKYLL_ENV: production
  LC_ALL: C.UTF-8

before_script:
  - gem install bundler
  - bundle install

test:
  stage: test
  script:
    - bundle exec jekyll build -d test
  artifacts:
    paths:
      - test
  except:
    variables:
      - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

pages:
  stage: deploy
  script:
    - bundle exec jekyll build -d public
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
  environment: production

Just noticed, that this is moved now to the “Deployment” category instead of Settings. Would be good to update the documentation :sweat_smile:.

1 Like