Browse Source

Add a gitlab CI file

Abhas Abhinav 5 months ago
parent
commit
c23c63c982
1 changed files with 28 additions and 0 deletions
  1. 28
    0
      .gitlab-ci.yml

+ 28
- 0
.gitlab-ci.yml View File

@@ -0,0 +1,28 @@
1
+image: ruby:2.3
2
+
3
+variables:
4
+  JEKYLL_ENV: production
5
+  LC_ALL: C.UTF-8
6
+
7
+before_script:
8
+  - bundle install
9
+
10
+test:
11
+  stage: test
12
+  script:
13
+  - bundle exec jekyll build -d test
14
+  artifacts:
15
+    paths:
16
+    - test
17
+  except:
18
+  - master
19
+
20
+pages:
21
+  stage: deploy
22
+  script:
23
+  - bundle exec jekyll build -d public
24
+  artifacts:
25
+    paths:
26
+    - public
27
+  only:
28
+  - master

Loading…
Cancel
Save