Skip to content

Commit 6b02920

Browse files
committed
Updates for Amplify build
1 parent 333507e commit 6b02920

File tree

2 files changed

+409
-1
lines changed

2 files changed

+409
-1
lines changed

amplify.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 1
2+
frontend:
3+
phases:
4+
preBuild:
5+
commands:
6+
- npm ci
7+
build:
8+
commands:
9+
- npm run build
10+
postBuild:
11+
commands:
12+
- echo "Send Slack notification"
13+
- |
14+
curl -H 'Content-Type: application/json' -X POST --data '{
15+
"blocks": [
16+
{
17+
"type": "header",
18+
"text": {
19+
"text": ":rocket: New deployment",
20+
"type": "plain_text",
21+
"emoji": true
22+
}
23+
},
24+
{
25+
"type": "section",
26+
"text": {
27+
"type": "mrkdwn",
28+
"text": ":globe_with_meridians: <https://docs.kinde.com|View site>"
29+
}
30+
},
31+
{
32+
"type": "section",
33+
"text": {
34+
"type": "mrkdwn",
35+
"text": ":github: <https://github.com/kinde-oss/documentation/commit/'"$AWS_COMMIT_ID"'|View changes>"
36+
}
37+
}
38+
]
39+
}' $SLACK_KINDE_DOCS_PR_WEBHOOK_URL
40+
artifacts:
41+
baseDirectory: dist
42+
files:
43+
- '**/*'
44+
cache:
45+
paths:
46+
- node_modules/**/*

0 commit comments

Comments
 (0)