-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
44 lines (41 loc) · 845 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
34
35
36
37
38
39
40
41
42
43
44
version: 2
jobs:
build:
working_directory: ~/tmp
docker:
- image: circleci/node:10.15
steps:
- checkout
- attach_workspace:
at: ~/tmp
- run:
name: Build
command: |
yarn install --frozen-lockfile
yarn build
- persist_to_workspace:
root: .
paths:
- dist
- deploy.sh
deploy:
docker:
- image: circleci/python:2.7-jessie
working_directory: ~/tmp
steps:
- attach_workspace:
at: ~/tmp
- run:
name: Install awscli
command: sudo pip install awscli
- run:
name: Deploy to S3
command: ./deploy.sh
workflows:
version: 2
build_and_deploy:
jobs:
- build
- deploy:
requires:
- build