Gitlab: host and render HTML files

1 · Roneo.org · Dec. 17, 2020, 7:07 a.m.
Gitlab normally displays the source of HTML files you access through your web browser. Here is how to force Gitlab to interpret and display the render of these files. Bonus: You can use HTML along with CSS and Javascript It works on any Gitlab instance (Gitlab.com or Frama.io for example) Let’s go!# Upload your files to your Gitlab repository Add a file called .gitlab-ci.yml containing the following lines at the root of this repo: pages: script: - mkdir .public - cp -r * .public - mv .public ...