mirror of
https://github.com/square/okhttp.git
synced 2026-10-24 07:59:29 +03:00
* Add Markdown code and fix script indentation * Update CONTRIBUTING.md --------- Co-authored-by: Jake Wharton <jw@jakewharton.com>
1.2 KiB
1.2 KiB
Releasing
-
Update
CHANGELOG.md. -
Set versions:
export RELEASE_VERSION=X.Y.Z export NEXT_VERSION=X.Y.Z-SNAPSHOT -
Update versions, tag the release, and prepare for the next release.
sed -i "" \ "s/version = \".*\"/version = \"$RELEASE_VERSION\"/g" \ build-logic/src/main/kotlin/okhttp.base-conventions.gradle.kts sed -i "" \ "s/\"com.squareup.okhttp3:\([^\:]*\):[^\"]*\"/\"com.squareup.okhttp3:\1:$RELEASE_VERSION\"/g" \ `find . -name "README.md"` sed -i "" \ "s/\/com.squareup.okhttp3\/\([^\:]*\)\/[^\/]*\//\/com.squareup.okhttp3\/\1\/$RELEASE_VERSION\//g" \ `find . -name "README.md"` git commit -am "Prepare for release $RELEASE_VERSION." git tag -a parent-$RELEASE_VERSION -m "Version $RELEASE_VERSION" git push && git push --tags sed -i "" \ "s/version = \".*\"/version = \"$NEXT_VERSION\"/g" \ build-logic/src/main/kotlin/okhttp.base-conventions.gradle.kts git commit -am "Prepare next development version." git push -
Wait for GitHub Actions to build and promote the release.