Skip to content

Commit

Permalink
ci(doc): fix stable build of user-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jan 17, 2025
1 parent bf28325 commit fa4ae32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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) }}
Expand Down
7 changes: 2 additions & 5 deletions ci/actions-templates/test-docs-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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) }}
Expand Down

0 comments on commit fa4ae32

Please sign in to comment.