forked from Elixir-Girls/elixir-girls.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
33 lines (29 loc) · 790 Bytes
/
circle.yml
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
33
version: 2
jobs:
build:
working_directory: ~/elixir-girls
docker:
- image: circleci/ruby:2.3
branches:
ignore:
- master
steps:
- checkout
# Restore bundle cache
- type: cache-restore
key: elixir-girls-{{ checksum "Gemfile.lock" }}
# Bundle install dependencies
- run: bundle install --path vendor/bundle
# Store bundle cache
- type: cache-save
key: elixir-girls-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
# Buld static files
- run: bundle exec middleman build --verbose
- deploy:
name: Maybe Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "develop" ]; then
./scripts/deploy-ghpages.sh
fi