1Releasing 2========= 3 41. Update `CHANGELOG.md`. 5 62. Set versions: 7 8 ``` 9 export RELEASE_VERSION=X.Y.Z 10 export NEXT_VERSION=X.Y.Z-SNAPSHOT 11 ``` 12 133. Update versions, tag the release, and prepare for the next release. 14 15 ``` 16 sed -i "" \ 17 "s/VERSION_NAME=.*/VERSION_NAME=$RELEASE_VERSION/g" \ 18 gradle.properties 19 sed -i "" \ 20 "s/\"com.squareup.okio:\([^\:]*\):[^\"]*\"/\"com.squareup.okio:\1:$RELEASE_VERSION\"/g" \ 21 `find . -name "index.md"` 22 23 git commit -am "Prepare for release $RELEASE_VERSION." 24 git tag -a parent-$RELEASE_VERSION -m "Version $RELEASE_VERSION" 25 26 sed -i "" \ 27 "s/VERSION_NAME=.*/VERSION_NAME=$NEXT_VERSION/g" \ 28 gradle.properties 29 git commit -am "Prepare next development version." 30 31 git push && git push --tags 32 ``` 33 344. Wait for [GitHub Actions][github_actions] to build and promote the release. 35 36[github_actions]: https://github.com/square/okio/actions 37