浏览代码

Revert "Revert "[docs] Add the new docs CI checks"" (#123585)

* Revert "Revert "Add new docs actions (#123506)" (#123570)"

This reverts commit ee31c5a92dae4f658b463f5ae16334895a8cdfeb.

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Liam Thompson 8 月之前
父节点
当前提交
731a412326
共有 3 个文件被更改,包括 33 次插入21 次删除
  1. 0 21
      .github/workflows/comment-on-asciidoc-changes.yml
  2. 19 0
      .github/workflows/docs-build.yml
  3. 14 0
      .github/workflows/docs-cleanup.yml

+ 0 - 21
.github/workflows/comment-on-asciidoc-changes.yml

@@ -1,21 +0,0 @@
----
-name: Comment on PR for .asciidoc changes
-
-on:
-  # We need to use pull_request_target to be able to comment on PRs from forks
-  pull_request_target:
-    types:
-      - synchronize
-      - opened
-      - reopened
-    branches:
-      - main
-      - master
-      - "9.0"
-
-jobs:
-  comment-on-asciidoc-change:
-    permissions:
-      contents: read
-      pull-requests: write
-    uses: elastic/docs-builder/.github/workflows/comment-on-asciidoc-changes.yml@main

+ 19 - 0
.github/workflows/docs-build.yml

@@ -0,0 +1,19 @@
+name: docs-build
+
+on:
+  push:
+    branches:
+      - main
+  pull_request_target: ~
+  merge_group: ~
+
+jobs:
+  docs-preview:
+    uses: elastic/docs-builder/.github/workflows/preview-build.yml@main
+    with:
+      path-pattern: docs/**
+    permissions:
+      deployments: write
+      id-token: write
+      contents: read
+      pull-requests: read

+ 14 - 0
.github/workflows/docs-cleanup.yml

@@ -0,0 +1,14 @@
+name: docs-cleanup
+
+on:
+  pull_request_target:
+    types:
+      - closed
+
+jobs:
+  docs-preview:
+    uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@main
+    permissions:
+      contents: none
+      id-token: write
+      deployments: write