Skip to content

Commit 09049e3

Browse files
committed
build: commit all doc updates when releasing
There is Documentation and libnvme/doc which need to be added to the release. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 65ce61a commit 09049e3

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

scripts/release.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,9 @@ if [ "$force" = false ] ; then
102102
fi
103103
fi
104104

105-
# update all docs
106-
doc_dir=""
107-
if [ -d "Documentation" ]; then
108-
doc_dir="Documentation"
109-
elif [ -d "doc" ]; then
110-
doc_dir="doc"
111-
else
112-
echo "documentation directory not found"
113-
exit 1
114-
fi
115-
116105
if [ "$build_doc" = true ]; then
117-
# update documentation
118106
./scripts/update-docs.sh
119-
git add $doc_dir
107+
git add Documentation libnvme/doc
120108
git commit -s -m "doc: Regenerate all docs for $VERSION"
121109
fi
122110

0 commit comments

Comments
 (0)