-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
39 lines (39 loc) · 1.22 KB
/
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
version: 2
jobs:
build:
docker:
- image: node:11.14.0
working_directory: ~/api-to-html
steps:
- checkout
- run:
name: Get aws cli
command: |
apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
build-essential g++ python2.7 python2.7-dev unzip curl \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /tmp \
&& cd /tmp \
&& curl -O https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py \
&& pip install awscli \
&& rm -f /tmp/get-pip.py
- run:
name: Download EpochTalk
command: |
wget https://github.com/epochtalk/epochtalk/archive/master.zip
unzip master.zip
- run:
name: Install Dependencies
command: npm install
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
# set env for epochtalk path (unzipped dir)
echo "EPOCHTALK_PATH=epochtalk-master" > .env
node .
# push to S3
aws s3 cp api.html $S3_URI --region $S3_REGION
fi