Skip to content

Commit 9786553

Browse files
committed
path fix
1 parent 287e647 commit 9786553

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/deploy-bundle-preview.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
if: ${{ success() && github.event.pull_request.number }}
9494
run: |
9595
build_success_comment="Build successful! :white_check_mark:"
96-
build_success_comment+="\nDeploying docs draft."
96+
build_success_comment+="\nDeploying bundle preview."
9797
9898
echo "BUILD_SUCCESS_COMMENT<<EOF" >> $GITHUB_ENV
9999
echo -e "$build_success_comment" >> $GITHUB_ENV
@@ -137,9 +137,8 @@ jobs:
137137
if: success()
138138
run: |
139139
set -o pipefail
140-
cd docs
141140
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 }}
143142
cd docs-ui-drafts
144143
145144
# Records the repository that originally triggered the build so we can post back
@@ -165,13 +164,13 @@ jobs:
165164
# This will allow us to later determine if a draft is stale and needs to be cleaned up.
166165
echo "Marking last modified time of the draft." |& tee -a $GITHUB_WORKSPACE/deploy.log
167166
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" \
170169
|& tee -a $GITHUB_WORKSPACE/deploy.log
171170
172171
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 \
175174
|& tee -a $GITHUB_WORKSPACE/deploy.log
176175
177176
- name: Invalidate CloudFront Cache

0 commit comments

Comments
 (0)