|
1 |
| -Release should be done manually & carefully. |
| 1 | +## Release should be done manually & carefully. |
2 | 2 |
|
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! |
5 | 4 |
|
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> |
12 | 7 |
|
13 |
| -# Release from workstation |
| 8 | +# So, how? |
14 | 9 |
|
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! |
16 | 15 |
|
17 |
| -1) Push new release tag to github |
18 |
| -./gradlew release |
| 16 | +**That's it!** |
19 | 17 |
|
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 |
22 | 26 |
|
23 |
| -3) Clean everything |
24 |
| -./gradlew clean |
| 27 | +## Secondary option: manual release |
| 28 | +Just for reference. Travis is not used in this case |
25 | 29 |
|
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