Summary
I am trying to deploy a static site to GitLab pages. My intended flow is as follows:
- Build the project locally (this is a static html, with some assets)
- Push it to GitLab --> Let the pipeline run
- Access the site
My Repo
The location of my repository is here!
My CI script is as follows:
pages:
script:
- mkdir -p public
# - cp -R * public/ # Or any command to move your build output to the public folder
artifacts:
paths:
- public
only:
- main # Adjust to your branch if needed
Pipeline and Jobs
Notice that the pipeline successfully completed with two jobs:
- Test
- Deploy
pipeline to deploy static gitlab page
However, I cannot click into the deploy job to view the logs. And I also don't have the URL where my static site is hosted either.
You can see the actual pipeline ran here!
Thank you
Thanks in advance, and let me know if there are further information that can help troubleshooting.
Cheers Walakaka
Additional Note:
The closest issue I found was this link. But updating my script to follow the answer in the issue did not resolve it for me.