forked from pinterest/ktlint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move release process to GitHub Actions Workflow (pinterest#1740)
* Migrate release to a new workflow * fix email * fix typo * minor cleanup
- Loading branch information
Showing
6 changed files
with
44 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
# How to make new project release | ||
|
||
### Required configuration | ||
|
||
Add following information to your `$HOME/.gradle/gradle.properties` file: | ||
```properties | ||
# You Github access token | ||
servers.github.privKey=github_token | ||
# Signing GPG key id | ||
signing.keyId=12345678 | ||
# Signing GPG key password | ||
signing.password=some_password | ||
# Path to GPG file to sync artifcats | ||
signing.secretKeyRingFile=~/.gnupg/secring.gpg | ||
``` | ||
|
||
### Publishing new release | ||
|
||
1. Update `VERSION_NAME` with new release version in project root `gradle.properties` | ||
2. Fill in `CHANGELOG.md` with related to new version changes. | ||
3. Run `./gradlew publishNewRelease` to build, upload new artifacts, update KtLint version number on [CLI documentation](docs/install/cli.md) and [integrations documentation](docs/install/integrations.md) and [https://ktlint.github.io](https://ktlint.github.io) site. | ||
4. Update Github release notes with info from `CHANGELOG.md` | ||
1. Update `VERSION_NAME` with new release version in project root `gradle.properties`. Be sure to remove `-SNAPSHOT` | ||
2. Update `CHANGELOG.md` to rename the `Unreleased` section to the new release name, following the `## [x.x.x] - YYYY-MM-DD` format. | ||
3. Add the new release to the bottom of the `CHANGELOG.md` file. | ||
4. Commit `gradle.properties` and `CHANGELOG.md`. | ||
5. Add a tag with the new release version, and push it to remote. This will kick off the Release workflow. | ||
6. Close and release the repo on Sonatype. | ||
7. Find the `<release>-update-refs` branch in the repo (created by the `.announce` script) and merge it. | ||
8. Update `gradle.properties` with the new `SNAPSHOT` version, and add a new empty `Unreleased` section to the top of `CHANGELOG.md` and commit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters