|
|
@ -195,9 +195,24 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout: |
|
|
|
- checkout: |
|
|
|
path: ~/project |
|
|
|
path: ~/project |
|
|
|
|
|
|
|
|
|
|
|
# attach website build directory |
|
|
|
# attach website build directory |
|
|
|
- attach_workspace: |
|
|
|
- attach_workspace: |
|
|
|
at: ~/project/website |
|
|
|
at: ~/project/website |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# restores gem cache |
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
|
|
key: *RUBYGEM_CACHE_KEY |
|
|
|
|
|
|
|
# rerun build with 'ENV=production' to add analytics |
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
|
|
name: install gems |
|
|
|
|
|
|
|
command: bundle check || bundle install --path vendor/bundle --retry=3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# rerun build with 'ENV=production' to add analytics |
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
|
|
name: middleman build |
|
|
|
|
|
|
|
command: bundle exec middleman build |
|
|
|
|
|
|
|
|
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: website deploy |
|
|
|
name: website deploy |
|
|
|
command: ./scripts/deploy.sh |
|
|
|
command: ./scripts/deploy.sh |
|
|
|