-
Notifications
You must be signed in to change notification settings - Fork 49
/
buildspec.yml
37 lines (36 loc) · 1.15 KB
/
buildspec.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
version: 0.2
phases:
install:
commands:
pre_build:
commands:
- echo prepare env. Ensure latest version of node is available.
- sudo apt-get update
- sudo apt-get install -y apt-transport-https
- sudo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
- sudo apt-get update
- sudo apt-get install -y nodejs
- sudo apt-get install -y build-essential
- sudo npm -v
- sudo apt-get install -y yarn
- echo done with prepare env.
build:
commands:
- echo build site using yarn
- yarn
- cd ./examples/transit-react-basic/
- chmod 755 patch-TransportU2F.sh
- chmod 755 patch-Transportwebauthn.sh
- yarn installpkg
- yarn build
- echo done building
post_build:
commands:
- echo about to sync to S3
- aws s3 sync ./build "s3://${BUCKET_NAME}" --delete
- echo after sync to S3
artifacts:
files:
- '**/*'