I don't have access pages on imported project

I imported a project from Github, added a .gitlab-ci.yml, but it doesn’t deploy to GitLab pages. The pages setting does not show the access page. What am I missing.

Here’s the project - https://gitlab.com/johncrane/sort-of-trivia-ci/pages

Thanks in advance,

Resolved. In my script the elm compiler would print a success message and return a failure code when using the --optimize flag.