We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cffc78c commit f9c3decCopy full SHA for f9c3dec
1 file changed
.github/workflows/deploy.yml
@@ -70,15 +70,11 @@ jobs:
70
bundle exec rake build
71
72
- name: Validate Outputs
73
- uses: actions/github-script@v6
74
- with:
75
- script: |
76
- const bucketName = steps.terragrunt_output.outputs.bucket_name;
77
- const distributionId = steps.terragrunt_output.outputs.distribution_id;
78
-
79
- if (!bucketName || !distributionId) {
80
- core.setFailed('Required outputs not found');
81
- }
+ run: |
+ echo "Verifying CloudFront Distribution..."
+ aws cloudfront get-distribution --id "$DIST_ID"
+ echo "\nVerifying S3 Bucket..."
+ aws s3 ls | grep "$BUCKET_NAME"
82
83
- name: Copy output to S3
84
run: aws s3 sync ./_site/ s3://${{ steps.terragrunt_output.outputs.bucket_name }} --acl public-read --delete --cache-control max-age=604800
0 commit comments