-
Update
CHANGELOG.md
. -
Set versions:
export RELEASE_VERSION=$(awk -F '[][]' '/\[/{print $2; exit}' CHANGELOG.md) \ && echo "RELEASE_VERSION=$RELEASE_VERSION"
-
Update versions:
sed -i "" -r "s/^(.*private final static String SDK_VERSION = )(.*)(;.*)/\1\"${RELEASE_VERSION}\"\3/" \ sdk/src/main/java/com/herewhite/sdk/WhiteSdk.java sed -i "" \ "s/\"com.github.netless-io:\([^\:]*\):[^\"]*\"/\"com.github.netless-io:\1:$RELEASE_VERSION\"/g" \ README.md README_zh_CN.md
-
Tag the release and push to GitHub.
git add sdk/src/main/assets carrot.yml sdk/src/main/java/com/herewhite/sdk/WhiteSdk.java CHANGELOG.md README.md README_zh_CN.md git commit -m "release $RELEASE_VERSION" git tag -a $RELEASE_VERSION -m "Version $RELEASE_VERSION" git push -v origin refs/heads/master:refs/heads/master git push origin $RELEASE_VERSION
-
Trigger Jitpack build
curl https://jitpack.io/api/builds/com.github.netless-io/whiteboard-android/$RELEASE_VERSION