Skip to content

Commit 80a60fa

Browse files
authored
Fix deploy preview workflow (#408)
There is a conflict with the downloaded artifact in a previous step
1 parent 4b7e1c4 commit 80a60fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/preview-deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,16 @@ jobs:
6565
run: |
6666
gh run download ${{ github.event.workflow_run.id }} \
6767
--repo "${GITHUB_REPOSITORY}" \
68-
--name docs
68+
--name docs \
69+
--dir html
6970
7071
- uses: elastic/docs-builder/.github/actions/aws-auth@main
7172

7273
- name: Upload to S3
7374
env:
7475
PR_NUMBER: ${{ steps.pull_request.outputs.number }}
7576
run: |
76-
aws s3 sync . "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --delete --exclude "pull_request.json"
77+
aws s3 sync ./html "s3://elastic-docs-v3-website-preview/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" --delete
7778
aws cloudfront create-invalidation --distribution-id EKT7LT5PM8RKS --paths "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}/*"
7879
7980
- name: Update deployment status

0 commit comments

Comments
 (0)