Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 993 Bytes

File metadata and controls

36 lines (26 loc) · 993 Bytes

Releasing

  1. Update CHANGELOG.md.

  2. Set versions:

    export RELEASE_VERSION=X.Y.Z
    export NEXT_VERSION=X.Y.Z-SNAPSHOT
    
  3. Update versions, tag the release, and prepare for the next release.

    sed -i "" \
      "s/VERSION_NAME=.*/VERSION_NAME=$RELEASE_VERSION/g" \
      gradle.properties
    sed -i "" \
      "s/module = \"com.squareup.zstd:zstd-kmp-okio\", version = \"[0-9.]*\"/module = \"com.squareup.zstd:zstd-kmp-okio\", version = \"$RELEASE_VERSION\"/g" \
      "README.md"
    
    git commit -am "Prepare for release $RELEASE_VERSION."
    git tag -a parent-$RELEASE_VERSION -m "Version $RELEASE_VERSION"
    
    sed -i "" \
      "s/VERSION_NAME=.*/VERSION_NAME=$NEXT_VERSION/g" \
      gradle.properties
    git commit -am "Prepare next development version."
    
    git push && git push --tags
    
  4. Wait for GitHub Actions to build and promote the release.