Skip to content

Commit c82527d

Browse files
committed
ok
1 parent b8247c5 commit c82527d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/preview.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ jobs:
3737
log_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}?pr=${context.issue.number}`,
3838
})
3939
return deployment.data.id
40+
41+
- uses: actions/checkout@v4
4042

4143
- uses: actions/download-artifact@v4
4244
with:
4345
name: docs
44-
path: .
46+
path: .artifacts/docs/html
4547

4648
- uses: ./actions/aws-auth
4749
with:
@@ -51,7 +53,7 @@ jobs:
5153
env:
5254
PR_NUMBER: ${{ github.event.pull_request.number }}
5355
run: |
54-
aws s3 sync . "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --delete
56+
aws s3 sync .artifacts/docs/html "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --delete
5557
aws cloudfront create-invalidation --distribution-id EKT7LT5PM8RKS --paths "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}/*"
5658
5759
- name: Update deployment status

0 commit comments

Comments
 (0)