-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathamplify.yml
28 lines (27 loc) · 901 Bytes
/
amplify.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
version: 1
frontend:
phases:
preBuild:
commands:
- echo "https://${GITHUB_PAT}:x-oauth-basic@github.com" > ~/.git-credentials
- chmod 600 ~/.git-credentials
- git config --global credential.helper store
- git submodule sync --recursive
- git submodule update --init --recursive
build:
commands:
- yarn install --frozen-lockfile
- |
if [ "$APP_ENV" = "production" ]; then
echo "Building for production..."
yarn run build:prod
else
echo "Building for development..."
yarn run build:dev
fi
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths: []