Skip to content

Commit 883aa28

Browse files
committed
fixes
1 parent 0c98a77 commit 883aa28

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Terragrunt Output
5252
uses: gruntwork-io/terragrunt-action@v3
53-
id: terragrunt_outputs
53+
id: terragrunt_output
5454
with:
5555
tg_dir: ${{ env.working_dir }}
5656
tg_command: output
@@ -60,8 +60,11 @@ jobs:
6060
bundle install
6161
bundle exec rake build
6262
63+
# TODO: fail workflow if bucket name or distribution_id is not found
64+
65+
6366
- name: Copy output to S3
64-
run: aws s3 sync ./_site/ s3://${{ steps.terragrunt_outputs.outputs.tg_action_output }} --acl public-read --delete --cache-control max-age=604800
67+
run: aws s3 sync ./_site/ s3://${{ steps.terragrunt_step.outputs.bucket_name }} --acl public-read --delete --cache-control max-age=604800
6568

6669
- name: Invalidate Cloudfront
67-
run: aws cloudfront create-invalidation --distribution-id ${{ steps.terragrunt_outputs.outputs.tg_action_output }} --paths "/*"
70+
run: aws cloudfront create-invalidation --distribution-id ${{ steps.terragrunt_step.outputs.distribution_id }} --paths "/*"

0 commit comments

Comments
 (0)