Skip to content

Commit b97d7af

Browse files
author
Nathan Speidel
committed
Updated release script
1 parent da5f957 commit b97d7af

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bin/release.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
22

3-
# This script will build the documentation from the current "src" branch and push it to the "master" branch.
4-
# "mkdocs" must be available, and you must be in a clean git environment ("git diff" should print nothing).
3+
# This script will build the documentation from the current "src" branch. "mkdocs" must be available, and
4+
# you must be in a clean git environment ("git diff" should print nothing). The java-docs folder in the
5+
# master branch will not be replaced with the corresponding folder build from the src branch, which is just
6+
# a placeholder.
57

68
git checkout src
79
git pull
@@ -22,9 +24,13 @@ mv site/ /tmp/tmp-folder-for-bullet-docs/
2224
echo Checking out master...
2325
git checkout master
2426
git pull
25-
# Carefully delete everything in this folder
27+
# Save the JavaDocs currently in master branch
28+
mv java-docs/ /tmp/tmp-folder-for-bullet-docs/
2629
rm -rf ./*
2730
cp -r /tmp/tmp-folder-for-bullet-docs/site/ ./
31+
# Delete fake java-docs and replace with saved ones
32+
rm -rf ./java-docs/
33+
mv /tmp/tmp-folder-for-bullet-docs/java-docs/ ./
2834
rm -rf /tmp/tmp-folder-for-bullet-docs/
2935
git add -A
3036
git commit -m "Build at ${COMMIT}"

0 commit comments

Comments
 (0)