blob: f7736c50ceeebebaa5ab9f0b18656cec59702861 (
plain)
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
|
image: ruby:2.3 # Use Ruby Docker image
cache: # Add Bundler cache to 'vendor' directory
paths:
- vendor/
before_script: # Install Gems to 'vendor' directory
- bundle install --path vendor
test:
stage: test
script: # Generate test site(s) into 'test' directory
- bundle exec jekyll build -d test
artifacts: # Save a zipped version for download
paths:
- test
except: # Execute for all branches except master
- master
pages:
stage: deploy
script: # Generate public site and deploy
- bundle exec jekyll build -d public
artifacts: # Save a zipped version for download
paths:
- public
only: # Only deploy the master branch
- master
|