Skip to content

Instantly share code, notes, and snippets.

@BMonsalvatge
Created September 4, 2018 00:17
Show Gist options
  • Save BMonsalvatge/b14fe8648177094a4197f7991b31535a to your computer and use it in GitHub Desktop.
Save BMonsalvatge/b14fe8648177094a4197f7991b31535a to your computer and use it in GitHub Desktop.
GatsbyJS CodeBuild Example
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