From bcdd031dac2ecc33efc454d57b3387bd9fa9a50b Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Tue, 28 Apr 2026 16:03:25 +0200 Subject: [PATCH] Enable docs preview S3 upload in local workflow Remove the hard-disabled upload gate in the local preview workflow and compute PATH_PREFIX without deployment output so push builds can publish to S3. Also update docs index content so merging this PR triggers the docs workflow path filters. Made-with: Cursor --- .github/workflows/docs-preview-local.yml | 11 +++-------- docs/index.md | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs-preview-local.yml b/.github/workflows/docs-preview-local.yml index 7830f04578..5eb51bf3a1 100644 --- a/.github/workflows/docs-preview-local.yml +++ b/.github/workflows/docs-preview-local.yml @@ -258,11 +258,9 @@ jobs: - name: Generate env.PATH_PREFIX id: generate-path-prefix - # disabled: preview path prefix is not needed on this branch if: > - false - && env.MATCH == 'true' - && steps.deployment.outputs.result + env.MATCH == 'true' + && needs.check.outputs.any_modified != 'false' env: PR_NUMBER: ${{ github.event.pull_request.number }} GITHUB_REF_NAME: ${{ github.ref_name }} @@ -336,13 +334,10 @@ jobs: - name: Upload to S3 id: s3-upload - # disabled: preview uploads are not enabled on this branch if: > - false - && env.MATCH == 'true' + env.MATCH == 'true' && !cancelled() && steps.internal-docs-build.outputs.skip != 'true' - && steps.deployment.outputs.result && steps.internal-docs-build.outcome == 'success' env: AWS_RETRY_MODE: standard diff --git a/docs/index.md b/docs/index.md index acbc29ef51..22927502ff 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,5 +11,6 @@ Elastic Docs V3 is our next-generation documentation platform designed to improv * [Contribute to Elastic documentation](https://www.elastic.co/docs/contribute-docs/) * [Learn about V3 syntax](./syntax/index.md) * [Configure content sets in V3](./configure/index.md) +* [Explore CLI commands](./cli/index.md) * [Contribute to V3 (developer guide)](./development/index.md) * [Learn about migration to Elastic Docs V3](./migration/index.md)