You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/maintainers_guide.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,13 @@ Refer to the [README](https://github.com/slackapi/java-slack-sdk/blob/main/docs/
84
84
85
85
#### Prerequisites
86
86
87
-
Place `$HOME/.m2/settings.xml` with your Sonatype account information.
87
+
* If you don't have `gnu-sed`, run `brew install gnu-sed` & `brew install gnupg`
88
+
* Make sure you've set up your key https://central.sonatype.org/publish/requirements/gpg/
89
+
* Make sure the account you are using has the permission to make releases [under com.slack groupId](https://central.sonatype.com/publishing/com.slack/users)
90
+
91
+
Place `$HOME/.m2/settings.xml` with your Sonatype account information.
92
+
* Generate user token: https://central.sonatype.org/publish/generate-token/
93
+
* Set the user token id/password: https://central.sonatype.org/publish/publish-manual/#signing-components
88
94
89
95
```xml
90
96
<settings>
@@ -110,25 +116,31 @@ Place `$HOME/.m2/settings.xml` with your Sonatype account information.
110
116
111
117
#### Operations
112
118
119
+
* From the upstream repository
113
120
* Preparation
114
-
*`git pull --rebase slackapi master`
121
+
*`git switch main && git pull origin main`
115
122
* Make sure there are no build failures at https://github.com/slackapi/java-slack-sdk/actions
116
123
* Set a new version
117
-
* If you don't have `gnu-sed`, run `brew install gnu-sed` first
124
+
* If you don't have `gnu-sed`, check out [Prerequisites](#prerequisites)
118
125
* Run `scripts/set_version.sh (the version)` (e.g., `scripts/set_version.sh 1.0.0`)
119
126
* Ship the libraries
120
127
* Switch to **JDK 17** to publish all modules (on macOS, you can run `export JAVA_HOME=$(/usr/libexec/java_home -v 17)` for it)
121
128
* Run `scripts/release.sh` (it takes a bit long)
122
129
* (If you encounter an error, log in https://oss.sonatype.org/ to check detailed information)
123
130
* Create GitHub Release(s) and add release notes
131
+
*[Look at previous releases](https://github.com/slackapi/java-slack-sdk/releases) and follow their layouts
124
132
* Prepare a release note by `git log --pretty=format:'%h %s by %an' --abbrev-commit | grep -v "Merge pull request " | head -50`
0 commit comments