GitLab User Page
Login to your GitLab and create a project name your project to yourusername.gitlab.io
(if you are creating a page for a group change project name to yourgroupname.gitlab.io )
.
Create a project and commit it
Follow the folder structure
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="css/main.css"> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>
h1{ color: red; }
pages: stage: deploy script: - mkdir .public - cp -r * .public - mv .public public artifacts: paths: - public only: - master
commit and push the code to GitLab it will automatically build.
if you are using command line
cd existing_folder git init git remote add origin https://gitlab.com/your repository url.git git add . git commit git push -u origin master
You can see the build result in build menu
After build successfully completed, open your page using
http://yourusername.gitlab.io
Tadaa …. !
what is the benefit of creating page in gitlab.io
- You can host a website
- You can showcase your open source projects
- You can create a good portfolio
etc
Ref : http://docs.gitlab.com/ee/pages/README.html