Created
July 25, 2019 20:11
-
-
Save stomg7969/66c40a854ea79331bf9cc69a5cc43b38 to your computer and use it in GitHub Desktop.
buildsepc example 2
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: | |
| 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