Skip to content

Commit 0af652e

Browse files
committed
Added buildspec file
1 parent ada2b82 commit 0af652e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

buildspec.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 0.1
2+
environment_variables:
3+
plaintext:
4+
S3_BUCKET: "erc721validator.org"
5+
DIST_FOLDER: "dist"
6+
phases:
7+
install:
8+
commands:
9+
- echo Installing source dependencies...
10+
- npm cache verify
11+
- npm install
12+
- npm run generate
13+
- echo App generated
14+
build:
15+
commands:
16+
- echo Build started on `date`
17+
- aws s3 rm s3://$S3_BUCKET/ --recursive
18+
- aws s3 cp "./$DIST_FOLDER/" s3://$S3_BUCKET/ --recursive
19+
post_build:
20+
commands:
21+
- aws cloudfront create-invalidation --distribution-id $EB_DISTRO --paths /\*
22+
- echo Build completed on `date`

0 commit comments

Comments
 (0)