README.md 656 Bytes
Newer Older
Ratnadeep Rajendra Kharade's avatar
Ratnadeep Rajendra Kharade committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32


---

Example plain HTML site using GitLab Pages.

Learn more about GitLab Pages at https://pages.gitlab.io and the official
documentation https://docs.gitlab.com/ce/user/project/pages/.

---

## GitLab CI

This project's static Pages are built by [GitLab CI][ci], following the steps
defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):

```
variables:
  EXPORT_DIR: "/var/www/html/pages"

pages-master:
  stage: deploy
  script:
    - mkdir "$EXPORT_DIR/$CI_PROJECT_NAME"	
    - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
  tags: 
    - production
  only: 
    - master
```

The above example expects to put all your HTML files in the `public/` directory.