Skip to content

Commit 0a360ec

Browse files
committed
configure gitlab pages
Signed-off-by: David Aguilar <davvid@gmail.com>
1 parent 84154b9 commit 0a360ec

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.gitlab-ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
default:
2+
image: ruby:latest
3+
cache:
4+
paths:
5+
- vendor/ruby
6+
before_script:
7+
- bundle init
8+
- bundle config set path vendor/ruby
9+
- bundle add jekyll
10+
- bundle install
11+
12+
stages:
13+
- test
14+
- deploy
15+
16+
test-pages:
17+
stage: test
18+
script:
19+
- bundle exec jekyll build -d test
20+
artifacts:
21+
paths:
22+
- test
23+
except:
24+
- main
25+
26+
pages:
27+
stage: deploy
28+
script:
29+
- bundle exec jekyll build -d public
30+
artifacts:
31+
paths:
32+
- public
33+
only:
34+
- main

0 commit comments

Comments
 (0)