-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamplify.yml
37 lines (36 loc) · 1.07 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
31
32
33
34
35
36
37
version: 1
backend:
phases:
build:
commands:
- yarn install --immutable --immutable-cache --check-cache
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
- echo "EXPO_PUBLIC_SENTRY_PROJECT=$EXPO_PUBLIC_SENTRY_PROJECT" >> .env
- echo "EXPO_PUBLIC_SENTRY_ORG=$EXPO_PUBLIC_SENTRY_ORG" >> .env
- echo "EXPO_PUBLIC_SENTRY_AUTH_TOKEN=$EXPO_PUBLIC_SENTRY_AUTH_TOKEN" >> .env
- echo "EXPO_PUBLIC_SPOTIFY_CLIENT_ID=$EXPO_PUBLIC_SPOTIFY_CLIENT_ID" >> .env
- echo "EXPO_PUBLIC_SPOTIFY_CLIENT_SECRET=$EXPO_PUBLIC_SPOTIFY_CLIENT_SECRET" >> .env
frontend:
phases:
preBuild:
commands:
- nvm install 20.12.2
- nvm use 20.12.2
- yarn global add expo-cli
- yarn install
build:
commands:
- mkdir ./dist && touch ./dist/index.html
- 'npx expo export -p web'
postBuild:
commands:
- cd dist
- ls
artifacts:
baseDirectory: dist
files:
- '**/*'
cache:
paths:
- .yarn/**/*
- $(yarn global dir)/**/*