Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,16 @@ jobs:
bundle install
bundle exec rake build

# TODO: fail workflow if bucket name or distribution_id is not found
- name: Validate Outputs
uses: actions/github-script@v6
with:
script: |
const bucketName = steps.terragrunt_output.outputs.bucket_name;
const distributionId = steps.terragrunt_output.outputs.distribution_id;

if (!bucketName || !distributionId) {
core.setFailed('Required outputs not found');
}

- name: Copy output to S3
run: aws s3 sync ./_site/ s3://${{ steps.terragrunt_output.outputs.bucket_name }} --acl public-read --delete --cache-control max-age=604800
Expand Down