Skip to content

Commit eba1e99

Browse files
committed
Upload binary instead of built documentation
1 parent c0a2f5b commit eba1e99

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,11 @@ jobs:
3535

3636
- name: Publish AOT
3737
run: ./build.sh publishbinaries
38-
39-
# we run our artifact directly please use the prebuild
40-
# elastic/docs-builder@main GitHub Action for all other repositories!
41-
- name: Build documentation
42-
env:
43-
PR_NUMBER: ${{ github.event.pull_request.number }}
44-
run: .artifacts/publish/docs-builder/release/docs-builder --strict --path-prefix "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}"
45-
38+
4639
- uses: actions/upload-artifact@v4
4740
with:
48-
name: docs
49-
path: .artifacts/docs/html
41+
name: docs-builder-binary
42+
path: .artifacts/publish/docs-builder/release/docs-builder
5043
if-no-files-found: error
5144
retention-days: 1
5245

.github/workflows/preview.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,15 @@ jobs:
4343

4444
- uses: actions/download-artifact@v4
4545
with:
46-
name: docs
47-
path: .artifacts/docs/html
46+
name: docs-builder-binary
47+
48+
# we run our artifact directly please use the prebuild
49+
# elastic/docs-builder@main GitHub Action for all other repositories!
50+
- name: Build documentation
51+
env:
52+
PR_NUMBER: ${{ github.event.pull_request.number }}
53+
run: ./docs-builder --strict --path-prefix "/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}"
54+
4855

4956
- uses: ./.github/actions/aws-auth
5057

0 commit comments

Comments
 (0)