From 3dd100b5c09c5e77eeb6599dcf70bc459892019f Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Mon, 17 Feb 2025 13:13:28 -0500 Subject: [PATCH 1/2] docs: update release instructions --- .github/maintainers_guide.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/maintainers_guide.md b/.github/maintainers_guide.md index 3c296ec50..5299cc205 100644 --- a/.github/maintainers_guide.md +++ b/.github/maintainers_guide.md @@ -110,11 +110,12 @@ Place `$HOME/.m2/settings.xml` with your Sonatype account information. #### Operations +* From the upstream repository * Preparation - * `git pull --rebase slackapi master` + * `git switch main && git pull origin main` * Make sure there are no build failures at https://github.com/slackapi/java-slack-sdk/actions * Set a new version - * If you don't have `gnu-sed`, run `brew install gnu-sed` first + * If you don't have `gnu-sed`, run `brew install gnu-sed` & `brew install gnupg` first * Run `scripts/set_version.sh (the version)` (e.g., `scripts/set_version.sh 1.0.0`) * Ship the libraries * Switch to **JDK 17** to publish all modules (on macOS, you can run `export JAVA_HOME=$(/usr/libexec/java_home -v 17)` for it) From 5b7c20643b9c1f2990ffda5820b4f627f69d9c18 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Tue, 18 Feb 2025 12:52:50 -0500 Subject: [PATCH 2/2] Update maintainers_guide.md --- .github/maintainers_guide.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/maintainers_guide.md b/.github/maintainers_guide.md index 5299cc205..149cfb152 100644 --- a/.github/maintainers_guide.md +++ b/.github/maintainers_guide.md @@ -122,14 +122,19 @@ Place `$HOME/.m2/settings.xml` with your Sonatype account information. * Run `scripts/release.sh` (it takes a bit long) * (If you encounter an error, log in https://oss.sonatype.org/ to check detailed information) * Create GitHub Release(s) and add release notes + * Look at previous releases and follow their layouts; https://github.com/slackapi/java-slack-sdk/releases * Prepare a release note by `git log --pretty=format:'%h %s by %an' --abbrev-commit | grep -v "Merge pull request " | head -50` * `git add . -v && git commit -m'version (your version here)'` * `git tag v(your version here)` - * `git push slackapi --tags` + * `git push & git push --tags` * Open https://github.com/slackapi/java-slack-sdk/releases/new?tag=v${version} * (Slack Internal) Communicate the release internally. Include a link to the GitHub Release(s). * (Slack Internal) Tweet? Not necessary for patch updates, might be needed for minor updates, definitely needed for major updates. Include a link to the GitHub Release(s). +* Anticipate the next version as a SNAPSHOT + * `scripts/set_version.sh (next patch version)-SNAPSHOT` (e.g., `scripts/set_version.sh 1.0.1-SNAPSHOT`) + * `git add . -v && git commit -m 'Start next version'` + * `git push` ## Workflow