First off, I could not find a category that looked like it was mostly focused on getting help with GitLab Pages, so picked this category. If I should post this in a different category, please let me know and I will do that.
I am attempting to set up my first ever set of GitLab pages. This effort is on GitLab.com, so the version is the version on the GitLab.com site today. Setting up GitLab Pages for a project looks like it should be a straightforward thing to do. After reading the docs at GitLab Pages and pages_from_scratch and several other places, I created a “.gitlab-ci.yml” file with the following contents:
- if: ‘$CI_COMMIT_BRANCH’
- echo “Testing”
- mkdir “buildit”
- touch “buildit/info.txt”
- test -f “buildit/info.txt”
- echo “Building and Deploying pages”
- gem install bundler
- bundle install
- bundle exec jekyll build -d public
- if: $CI_COMMIT_BRANCH == “master”
After doing whatever work locally and then committing the changes to the GitLab repository at GitLab.com, a check of files there shows the public directory on GitLab has the html files that should be there and the contents of those html files is correct. Those html files are still there after the CI/CD pipeline runs as expected. However, when I go to Settings -> Pages and click on the link where the GitLab Pages should be found DataCollisions page, I receive a 404 error from GitLab. Changing the setting for this project to be private or public visibility did not resolve the issue, I still get 404 errors. Clearing the browser cache did not resolve the issue either.
I am quite sure I am missing something simple, but I cannot figure it out after 3 or 4 days of reading docs, looking at examples on the GitLab Pages Examples site, and trying everything I can think of.
Any help would be greatly appreciated.
Thanks in advance,