Skip to content

Commit

Permalink
Merge pull request #62 from andreciornavei/develop
Browse files Browse the repository at this point in the history
remove commands with aws cli
  • Loading branch information
andreciornavei authored Mar 8, 2024
2 parents 3a47169 + 60f1338 commit 644f096
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ jobs:
# This step deploys your application to AWS Lambda using the Serverless Framework.
- name: Release application on AWS S3 and invalidate CloudFront cache
run: |
S3_DOMAIN=${APP_NAME}.$([ "${BRANCH}" != "production" ] && echo "${BRANCH}.")${DOMAIN}
S3_DOMAIN="${APP_NAME}.$([ "${BRANCH}" != "production" ] && echo "${BRANCH}.")${DOMAIN}"
echo "S3_DOMAIN=${S3_DOMAIN}"
ls -R frontend/build/
aws s3 sync frontend/build/ s3://${S3_DOMAIN}
SLS_OUTPUT=$(cat sls-output.json)
$(echo "${SLS_OUTPUT}" | jq -r 'keys[] as $k | "export \($k)=\(.[$k])"')
aws cloudfront create-invalidation --distribution-id ${CDNDistributionId} --paths "/*"
if: success()

0 comments on commit 644f096

Please sign in to comment.