Created
September 4, 2018 00:17
-
-
Save BMonsalvatge/b14fe8648177094a4197f7991b31535a to your computer and use it in GitHub Desktop.
GatsbyJS CodeBuild Example
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.2 | |
phases: | |
install: | |
commands: | |
- echo "install step" | |
- npm install -g gatsby | |
pre_build: | |
commands: | |
- echo "pre_build step" | |
- npm install | |
build: | |
commands: | |
- npm run build | |
post_build: | |
commands: | |
- aws s3 sync --delete "./public/" "s3://example-com" --acl "public-read" | |
- echo "post_build step" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment