Skip to content

Commit 6081b1e

Browse files
committed
build: Update version before regenerating docs
The docs contain the version string. Let's set new version before regenerating the documentation to keep it consistent. Signed-off-by: Daniel Wagner <[email protected]>
1 parent f25d7bc commit 6081b1e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

release.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ else
5454
exit 1
5555
fi
5656

57-
./$doc_dir/update-docs.sh
58-
git add $doc_dir
59-
git commit -s -m "Regenerate all documentation" \
60-
-m "Regenerate documentation for $VERSION release"
61-
6257
# update meson.build
6358
sed -i -e "0,/[ \t]version: /s/\([ \t]version: \).*/\1\'$ver\',/" meson.build
6459
git add meson.build
60+
git commit -s -m "build: Update version to $VERSION"
61+
62+
# update documentation
63+
./$doc_dir/update-docs.sh
64+
git add $doc_dir
65+
git commit -s -m "doc: Regenerate all docs for $VERSION"
6566

66-
git commit -s -m "Release $VERSION"
6767
git tag -s -m "Release $VERSION" "$VERSION"
6868
git push --dry-run origin "$VERSION"^{}:master tag "$VERSION"
6969

0 commit comments

Comments
 (0)