Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 1.09 KB

Releasing.md

File metadata and controls

33 lines (30 loc) · 1.09 KB

Releasing

Cutting a Release

  1. Update CHANGELOG.md.

  2. Set versions:

    export RELEASE_VERSION=$(awk -F '[][]' '/\[/{print $2; exit}' CHANGELOG.md) \
    && echo "RELEASE_VERSION=$RELEASE_VERSION"
  3. 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
  4. 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
  5. Trigger Jitpack build

    curl https://jitpack.io/api/builds/com.github.netless-io/whiteboard-android/$RELEASE_VERSION