-
Notifications
You must be signed in to change notification settings - Fork 301
/
amplify.yml
30 lines (30 loc) · 1.01 KB
/
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
29
30
version: 1
applications:
- appRoot: docs
frontend:
phases:
preBuild:
commands:
- rm -rf node_modules
- nvm install 20.13.1
- nvm use 20.13.1
- node -v
- export FLUTTER_HOME=${HOME}/sdks/flutter
# pin to flutter v3.22.2
- git clone -b 3.22.2 --depth 1 https://github.com/flutter/flutter.git ${FLUTTER_HOME}
- export PATH="$PATH:${FLUTTER_HOME}/bin"
# Skip cypress binary installation, as it's unneeded for docs and often fails transiently
# https://docs.cypress.io/guides/references/advanced-installation#Skipping-installation
- export CYPRESS_INSTALL_BINARY=0
- (cd .. && yarn install && yarn build)
build:
commands:
- nvm install 20.13.1
- nvm use 20.13.1
- node -v
- yarn flutter:build
- yarn build
artifacts:
baseDirectory: .next
files:
- '**/*'