I am unable to enable CI/CD in a project for Gitlab pages. Normally, I follow the steps below and once I click on CI/CD, it shows the job as running and I wait for it to pass.
The steps I have taken:
1. Created a new repo for my index.html page
2. Copied/pasted my code to index.html
3. Created .gitlab-ci.yml file with the code block
pages:
stage: deploy
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- master
4. Then, I went to the left menu bar and clicked on "CI/CD", and even after refreshing the page several times, all that is shown is "There are currently no pipelines."
I have tried several solutions but I am still not showing any jobs which have passed so that my index.html file will load.
What I have tried:
I have tried following the Gitlab CI/CD steps to enable CI/CD for my project.
- I made certain that my .gitlab-ci.yml is present in the root directory of the project.
- Went to Menu > Projects > Settings > General> Expanded Visibility, project features, permissions. In the Repo section > made certain CI/CD was turned enabled.