xref: /aosp_15_r20/external/ktfmt/RELEASING.md (revision 5be3f65c8cf0e6db0a7e312df5006e8e93cdf9ec)
1*5be3f65cSAndroid Build Coastguard Worker# Releasing a New `ktfmt` Version
2*5be3f65cSAndroid Build Coastguard Worker
3*5be3f65cSAndroid Build Coastguard Worker1. Run `./bump_versions.sh $OLD_VERSION $NEW_VERSION` and commit the changes.
4*5be3f65cSAndroid Build Coastguard Worker2. Create a new Release in GitHub. A GitHub Action is automatically triggered and builds and publishes the artifacts to
5*5be3f65cSAndroid Build Coastguard Worker    1. Maven
6*5be3f65cSAndroid Build Coastguard Worker    2. IntelliJ Plugin marketplace
7*5be3f65cSAndroid Build Coastguard Worker3. TODO: also automate website generation (https://facebook.github.io/ktfmt/) and the AWS Lambda that powers it. For now, you must clone the repo locally, and manually run some steps.
8*5be3f65cSAndroid Build Coastguard Worker    1. pushd online_formatter; ./build_and_deploy.sh; popd
9*5be3f65cSAndroid Build Coastguard Worker        1. Credentials should be configured using https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#credentials
10*5be3f65cSAndroid Build Coastguard Worker    2. Follow instructions in website/README.md
11