Skip to content

Instantly share code, notes, and snippets.

@stomg7969
Created July 25, 2019 20:11
Show Gist options
  • Select an option

  • Save stomg7969/66c40a854ea79331bf9cc69a5cc43b38 to your computer and use it in GitHub Desktop.

Select an option

Save stomg7969/66c40a854ea79331bf9cc69a5cc43b38 to your computer and use it in GitHub Desktop.
buildsepc example 2
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
pre_build:
commands:
- echo Removing objects in the S3 bucket...
- aws s3 rm s3://thedevelopark.com --recursive
build:
commands:
- echo Preparing for moving files to S3...
- mkdir build-output
- find . -type d -name public -exec cp -R {} build-output \;
- ls build-output/
- find . -mindepth 1 -name build-output -prune -o -exec rm -rf {} +
post_build:
commands:
- echo Moving files to S3...
- mv build-output/**/* ./
- mv build-output/* ./
- rm -R build-output
artifacts:
files:
- '**/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment