File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 "/*"
You can’t perform that action at this time.
0 commit comments