Skip to content

Commit

Permalink
fix: bad command format in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlescure committed Nov 12, 2020
1 parent 8391465 commit 14950ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LABEL "com.github.actions.description"="Build a React.js web app and sync to an
LABEL "com.github.actions.icon"="upload-cloud"
LABEL "com.github.actions.color"="green"

LABEL version="1.0.0"
LABEL version="1.0.1"
LABEL repository="https://github.com/jeanlescure/react-deploy-to-s3-action"
LABEL homepage="https://jeanlescure.io/"
LABEL maintainer="Jean Lescure <[email protected]>"
Expand Down
10 changes: 4 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ ${AWS_REGION}
text
EOF

# Install dependencies
# - Install dependencies
# - Build react bundle
# - Sync using our dedicated profile and suppress verbose messages.
# All other flags are optional via the `args:` directive.
sh -c "yarn" \
\
# Build react bundle
&& -c "${NODE_ENV_PREPEND} yarn build" \
\
# Sync using our dedicated profile and suppress verbose messages.
# All other flags are optional via the `args:` directive.
&& sh -c "aws s3 sync ${SOURCE_DIR:-public} s3://${AWS_S3_BUCKET}/${DEST_DIR} \
--profile react-deploy-to-s3-action \
--no-progress \
Expand Down

0 comments on commit 14950ca

Please sign in to comment.