From fa4ae320550847f3b14c20023b8b042c91c5cc3e Mon Sep 17 00:00:00 2001 From: rami3l Date: Fri, 17 Jan 2025 16:04:05 +0800 Subject: [PATCH] ci(doc): fix stable build of `user-guide` --- .github/workflows/ci.yaml | 7 ++----- ci/actions-templates/test-docs-template.yaml | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 092c2244ea..5284a5c503 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1528,11 +1528,6 @@ jobs: uses: taiki-e/install-action@v2 with: tool: mdbook - - name: Prepare directories - run: | - mkdir -p ${{ runner.temp }}/book - mkdir -p ${{ runner.temp }}/book/devel - mkdir -p ${{ runner.temp }}/book/dev-guide - name: Build user-guide (stable) if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }} run: | @@ -1546,12 +1541,14 @@ jobs: git checkout master cd doc/user-guide mdbook build + mkdir -p ${{ runner.temp }}/book mv book ${{ runner.temp }}/book/devel - name: Build dev-guide (master) run: | git checkout master cd doc/dev-guide mdbook build + mkdir -p ${{ runner.temp }}/book mv book ${{ runner.temp }}/book/dev-guide - name: Deploy to GitHub if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }} diff --git a/ci/actions-templates/test-docs-template.yaml b/ci/actions-templates/test-docs-template.yaml index 18b58ab418..49e71a5fd2 100644 --- a/ci/actions-templates/test-docs-template.yaml +++ b/ci/actions-templates/test-docs-template.yaml @@ -15,11 +15,6 @@ jobs: # skip-all uses: taiki-e/install-action@v2 with: tool: mdbook - - name: Prepare directories - run: | - mkdir -p ${{ runner.temp }}/book - mkdir -p ${{ runner.temp }}/book/devel - mkdir -p ${{ runner.temp }}/book/dev-guide - name: Build user-guide (stable) if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }} run: | @@ -33,12 +28,14 @@ jobs: # skip-all git checkout master cd doc/user-guide mdbook build + mkdir -p ${{ runner.temp }}/book mv book ${{ runner.temp }}/book/devel - name: Build dev-guide (master) run: | git checkout master cd doc/dev-guide mdbook build + mkdir -p ${{ runner.temp }}/book mv book ${{ runner.temp }}/book/dev-guide - name: Deploy to GitHub if: ${{ !contains('["pull_request", "merge_group"]', github.event_name) }}