Created
February 11, 2019 20:15
-
-
Save kkemple/89e71fcfe70e2e2e411112202548e7f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 0.1 | |
| backend: | |
| phases: | |
| build: | |
| commands: | |
| - '# Get Amplify CLI Cloud-Formation stack info from environment cache' | |
| - export STACKINFO="$(envCache --get stackInfo)" | |
| - '# Execute Amplify CLI with the helper script' | |
| - amplifyPush --environment $BUILD_ENV | |
| - '# Store Amplify CLI Cloud-Formation stack info in environment cache' | |
| - >- | |
| envCache --set stackInfo "$(amplify env get --json --name | |
| $AWS_BRANCH)" | |
| frontend: | |
| phases: | |
| preBuild: | |
| commands: | |
| - yarn install | |
| build: | |
| commands: | |
| - yarn run build | |
| artifacts: | |
| baseDirectory: build | |
| files: | |
| - '**/*' | |
| cache: | |
| paths: | |
| - node_modules/**/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment