93
93
if : ${{ success() && github.event.pull_request.number }}
94
94
run : |
95
95
build_success_comment="Build successful! :white_check_mark:"
96
- build_success_comment+="\nDeploying docs draft ."
96
+ build_success_comment+="\nDeploying bundle preview ."
97
97
98
98
echo "BUILD_SUCCESS_COMMENT<<EOF" >> $GITHUB_ENV
99
99
echo -e "$build_success_comment" >> $GITHUB_ENV
@@ -137,9 +137,8 @@ jobs:
137
137
if : success()
138
138
run : |
139
139
set -o pipefail
140
- cd docs
141
140
mkdir docs-ui-drafts
142
- mv build docs-ui-drafts/${{ steps.extract_branch.outputs.draft_directory }}
141
+ mv public docs-ui-drafts/${{ steps.extract_branch.outputs.draft_directory }}
143
142
cd docs-ui-drafts
144
143
145
144
# Records the repository that originally triggered the build so we can post back
@@ -165,13 +164,13 @@ jobs:
165
164
# This will allow us to later determine if a draft is stale and needs to be cleaned up.
166
165
echo "Marking last modified time of the draft." |& tee -a $GITHUB_WORKSPACE/deploy.log
167
166
echo "aws s3 cp --metadata '{\"touched\": \"now\"}' \
168
- s3://${{ vars.BUNDLE_PREVIEW_S3_BUCKET_NAME }}/${{ steps.extract_branch.outputs.draft_directory }}/.github_source_repository \
169
- s3://${{ vars.BUNDLE_PREVIEW_S3_BUCKET_NAME }}/${{ steps.extract_branch.outputs.draft_directory }}/.github_source_repository" \
167
+ s3://${{ vars.BUNDLE_PREVIEW_S3_BUCKET_NAME }}/docs-ui-drafts/ ${{ steps.extract_branch.outputs.draft_directory }}/.github_source_repository \
168
+ s3://${{ vars.BUNDLE_PREVIEW_S3_BUCKET_NAME }}/docs-ui-drafts/ ${{ steps.extract_branch.outputs.draft_directory }}/.github_source_repository" \
170
169
|& tee -a $GITHUB_WORKSPACE/deploy.log
171
170
172
171
aws s3 cp --metadata '{ "touched": "now" }' \
173
- s3://${{ vars.BUNDLE_PREVIEW_S3_BUCKET_NAME }}/${{ steps.extract_branch.outputs.draft_directory }}/.github_source_repository \
174
- s3://${{ vars.BUNDLE_PREVIEW_S3_BUCKET_NAME }}/${{ steps.extract_branch.outputs.draft_directory }}/.github_source_repository \
172
+ s3://${{ vars.BUNDLE_PREVIEW_S3_BUCKET_NAME }}/docs-ui-drafts/ ${{ steps.extract_branch.outputs.draft_directory }}/.github_source_repository \
173
+ s3://${{ vars.BUNDLE_PREVIEW_S3_BUCKET_NAME }}/docs-ui-drafts/ ${{ steps.extract_branch.outputs.draft_directory }}/.github_source_repository \
175
174
|& tee -a $GITHUB_WORKSPACE/deploy.log
176
175
177
176
- name : Invalidate CloudFront Cache
0 commit comments