diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 380f45063..7747de9d3 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -176,8 +176,11 @@ jobs: - name: Deploy frontend to S3 run: | - aws s3 sync frontend/dist "s3://$(terragrunt output bucket_name | tr -d '"')" - aws cloudfront create-invalidation --distribution-id $(terragrunt output cloudfront_id) --paths "/*" + cd tofu/environments/stage/services/frontend-infra + bucket=terragrunt output bucket_name | tr -d '"' + cloudfront=terragrunt output cloudfront_id + aws s3 sync ../../../../../frontend/dist "s3://$bucket" + aws cloudfront create-invalidation --distribution-id $cloudfront --paths "/*" deploy-backend: