Skip to content

Commit

Permalink
Update release script. (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbembenek authored Nov 8, 2024
1 parent 6a8d942 commit b303c00
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions make_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ script_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd "$script_dir"

git checkout master
mvn clean
# Make sure all files have licenses
mvn license:update-file-header
# Make sure code is formatted consistently
mvn com.spotify.fmt:fmt-maven-plugin:format
if [ -n "$(git status --porcelain)" ]; then
echo "Directory not clean"
exit 1
fi
# Make sure code builds
mvn package
# Generate Javadocs
mvn javadoc:javadoc -Prelease
git stash
if [ -n "$(git status --porcelain)" ]; then
echo "Directory not clean"
exit 1
fi

# Update the Javadocs on the website
git checkout gh-pages
Expand All @@ -32,7 +32,6 @@ git commit -m "Update Javadocs."
git push

git checkout master
git stash pop

# To upload the new release to Maven Central, run:
#
Expand Down

0 comments on commit b303c00

Please sign in to comment.