Skip to content

Commit 7ddff91

Browse files
committedFeb 12, 2022
Add up files
1 parent 5780e74 commit 7ddff91

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
 

‎.upignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore everything but storybook-static/
2+
*
3+
!storybook-static/**

‎buildspec.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 0.2
2+
3+
phases:
4+
install:
5+
runtime-versions:
6+
nodejs: 12
7+
build:
8+
commands:
9+
- yarn install
10+
- yarn run build-storybook
11+
- export APP_PATH=$(cat up.json | jq -r '.static.prefix')
12+
- curl -sf https://up.apex.sh/install | sh
13+
- git init # fix git information retrieval error
14+
- up deploy ${APP_ENV} --no-build
15+
- aws cloudfront create-invalidation --distribution-id ${DISTRIBUTION_ID} --paths /${APP_PATH}*

‎up.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "atlas-component-library",
3+
"regions": [
4+
"us-east-1"
5+
],
6+
"lambda": {
7+
"memory": 128,
8+
"runtime": "nodejs14.x"
9+
},
10+
"type": "static",
11+
"static": {
12+
"dir": "storybook-static",
13+
"prefix": "design-system"
14+
},
15+
"redirects": {
16+
"/*": {
17+
"location": "/",
18+
"status": 200
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)