Skip to content

Commit 566fece

Browse files
authored
Merge pull request #904 from korpling/fix-release-documentation-deploy
Directly generate the mdbook output in the target gh-pages folder
2 parents ee4ceac + 20e3e28 commit 566fece

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,13 @@ jobs:
4242
- run: misc/download-mdbook.sh 0.5.2
4343
env:
4444
OS_NAME: linux
45-
- name: Generate the user documentation
46-
run: mdbook build --dest-dir book/${SHORT_VERSION}/user-guide/ docs/user-guide/
47-
- name: Generate the developer documentation
48-
run: mdbook build --dest-dir book/${SHORT_VERSION}/developer-guide/ docs/developer-guide/
4945
- run: git clone -q -b gh-pages https://github.com/$GITHUB_REPOSITORY gh-pages
5046
- name: Remove old files for this version
5147
run: rm -Rf gh-pages/$SHORT_VERSION
52-
- name: copy the user documentation content
53-
run: cp -R docs/user-guide/book/* gh-pages/
54-
- name: copy the developer documentation content
55-
run: cp -R docs/developer-guide/book/* gh-pages/
48+
- name: Generate the user documentation
49+
run: mdbook build --dest-dir gh-pages/${SHORT_VERSION}/user-guide/ docs/user-guide/
50+
- name: Generate the developer documentation
51+
run: mdbook build --dest-dir gh-pages/${SHORT_VERSION}/developer-guide/book/ docs/developer-guide/
5652
- run: git add $SHORT_VERSION
5753
working-directory: gh-pages
5854
- run: git -c user.name='gh-actions' -c user.email='gh-actions' commit --allow-empty -m "add documentation for version $SHORT_VERSION"

0 commit comments

Comments
 (0)