Get the latest tech news
Hosting Static Content with Gitlab
Steps to host static content on GitLab: 1. create public repo, 2. Store your content under public, 3. Configure URL in Pages menu, 4. Configure CI.
Therefore, add your content to the public directory, commit, and push in Git as usual: Once you push to your Git repository a job will be started governed by above.gitlab-ci.yml and produces the intended website. I use below command to generate all my static HTML pages with/p as prefix, or "relative base":
Or read this on Hacker News