Skip to content

Commit 708212b

Browse files
ex3m1024Sergejs Muromcevs
authored and
Sergejs Muromcevs
committed
Improved How To Release md (#157)
1 parent 17eb3af commit 708212b

File tree

1 file changed

+38
-24
lines changed

1 file changed

+38
-24
lines changed

how-to-release.md

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,46 @@
1-
Release should be done manually & carefully.
1+
## Release should be done manually & carefully.
22

3-
Be sure to check that plugin works before releasing!
4-
To be executed straight on neueda/jetbrains-plugin-graph-database-support repository master branch.
3+
Be sure to check that plugin works before releasing!
54

6-
# Release from Travis
7-
8-
1) Push new release tag to Github
9-
./gradlew release
10-
2) Credentials are [stored in Travis](https://travis-ci.org/neueda/jetbrains-plugin-graph-database-support/settings#ember7449)
11-
3) Plugin will be automatically deployed to Jetbrains Plugin Registry when new tag is pushed (see `deploy` in [.travis.yml](.travis.yml))
5+
<sub>Commands to be executed straight from the root directory of [neueda/jetbrains-plugin-graph-database-support](https://github.com/neueda/jetbrains-plugin-graph-database-support)
6+
repository, on the master branch.</sub>
127

13-
# Release from workstation
8+
# So, how?
149

15-
Commands:
10+
1. Execute this command: `./gradlew release`
11+
2. When prompted, enter the code of version to be currently released (eg. `2.1.5`)
12+
3. Shortly after, when prompted again, enter the next version code (eg. `2.1.6`)
13+
4. Update release description on [GitHub](https://github.com/neueda/jetbrains-plugin-graph-database-support/releases)
14+
5. Cheer and celebrate!
1615

17-
1) Push new release tag to github
18-
./gradlew release
16+
**That's it!**
1917

20-
2) Checkout new release tag locally
21-
git checkout <new-release-tag>
18+
Please note that:
19+
- **Travis.org** is used for publishing
20+
- Plugin is automatically deployed to Jetbrains Plugin Registry when new tag is pushed (see `deploy` in [.travis.yml](.travis.yml))
21+
- The next version code will be added to gradle.properties
22+
- So you can start working on the next version right away
23+
- `[skip ci]` git commit message prefix tells Travis not to execute a build (because unnecessary)
24+
- JetBrains credentials are [stored in Travis](https://travis-ci.org/neueda/jetbrains-plugin-graph-database-support/settings#ember7449)
25+
- Currently, only INTELLIJ_TOKEN environment variable is needed for publishing
2226

23-
3) Clean everything
24-
./gradlew clean
27+
## Secondary option: manual release
28+
Just for reference. Travis is not used in this case
2529

26-
4) Publish plugin to Jetbrains Plugin Registry
27-
Ensure {HOME}/.gradle/gradle.properties file contains intellij credentials
28-
intellijUsername=
29-
intellijPassword=
30-
Execute
31-
./gradlew buildPlugin
32-
./gradlew :graph-database-support-plugin:publishPlugin
30+
1. Push new release tag to GitHub (Travis must be disabled)
31+
`./gradlew release`
32+
33+
2. Checkout new release tag locally
34+
`git checkout <new-release-tag>`
35+
36+
3. Clean everything
37+
`./gradlew clean`
38+
39+
4. Publish plugin to Jetbrains Plugin Registry
40+
4.1. Ensure `{HOME}/.gradle/gradle.properties` file contains valid intellij credentials:
41+
`intellijUsername=xxxx`
42+
`intellijPassword=xxxx`
43+
4.2. Build the plugin:
44+
`./gradlew buildPlugin`
45+
4.3. Publish the plugin:
46+
`./gradlew :graph-database-support-plugin:publishPlugin`

0 commit comments

Comments
 (0)