mirror of
				https://github.com/JetBrains/intellij-platform-plugin-template.git
				synced 2025-06-13 13:04:09 +00:00 
			
		
		
		
	Set publish channel depending on the plugin version, i.e. 1.0.0-beta -> beta channel
				
					
				
			This commit is contained in:
		
							parent
							
								
									d467a21aeb
								
							
						
					
					
						commit
						74dc4e3edb
					
				| @ -3,6 +3,9 @@ | |||||||
| # IntelliJ Platform Plugin Template Changelog | # IntelliJ Platform Plugin Template Changelog | ||||||
| 
 | 
 | ||||||
| ## [Unreleased] | ## [Unreleased] | ||||||
|  | ### Added | ||||||
|  | - Set publish channel depending on the plugin version, i.e. `1.0.0-beta` -> `beta` channel | ||||||
|  | 
 | ||||||
| ### Changed | ### Changed | ||||||
| - Update `org.jetbrains.changelog` dependency to `v0.3.3` | - Update `org.jetbrains.changelog` dependency to `v0.3.3` | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -181,6 +181,7 @@ In the `.github/workflows` directory, you can find definitions for the following | |||||||
| - [Release](.github/workflows/release.yml) | - [Release](.github/workflows/release.yml) | ||||||
|     - Triggered on `released` event. |     - Triggered on `released` event. | ||||||
|     - Publishes the plugin to the Marketplace using the provided `PUBLISH_TOKEN`. |     - Publishes the plugin to the Marketplace using the provided `PUBLISH_TOKEN`. | ||||||
|  |     - Sets publish channel depending on the plugin version, i.e. `1.0.0-beta` -> `beta` channel. | ||||||
|     - Patches the Changelog and commits. |     - Patches the Changelog and commits. | ||||||
| - [Template Cleanup](.github/workflows/template-cleanup.yml)  | - [Template Cleanup](.github/workflows/template-cleanup.yml)  | ||||||
|     - Triggered once on `push` event when a new template-based repository has been created. |     - Triggered once on `push` event when a new template-based repository has been created. | ||||||
| @ -226,6 +227,9 @@ Releasing a plugin to the Marketplace is a straightforward operation that uses t | |||||||
| provided by the [gradle-intellij-plugin][gh:gradle-intellij-plugin]. The [Release](.github/workflows/release.yml) | provided by the [gradle-intellij-plugin][gh:gradle-intellij-plugin]. The [Release](.github/workflows/release.yml) | ||||||
| workflow automates this process by running the task when a new release appears in the GitHub Releases section. | workflow automates this process by running the task when a new release appears in the GitHub Releases section. | ||||||
| 
 | 
 | ||||||
|  | > **TIP**: Set a suffix to the plugin version to publish it in the custom repository channel, i.e. `v1.0.0-beta` will | ||||||
|  | > push your plugin to the `beta` [release channel][docs:release-channel]. | ||||||
|  | 
 | ||||||
| The authorization process relies on the `PUBLISH_TOKEN` secret environment variable, which has to be acquired | The authorization process relies on the `PUBLISH_TOKEN` secret environment variable, which has to be acquired | ||||||
| through the Secrets section of the repository Settings. | through the Secrets section of the repository Settings. | ||||||
| 
 | 
 | ||||||
| @ -254,6 +258,7 @@ You can find out how to get that token in the [Providing Your Hub Permanent Toke | |||||||
| [docs:kotlin-ui-dsl]: https://www.jetbrains.org/intellij/sdk/docs/user_interface_components/kotlin_ui_dsl.html | [docs:kotlin-ui-dsl]: https://www.jetbrains.org/intellij/sdk/docs/user_interface_components/kotlin_ui_dsl.html | ||||||
| [docs:plugin.xml]: https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_configuration_file.html | [docs:plugin.xml]: https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_configuration_file.html | ||||||
| [docs:publishing]: https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/publishing_plugin.html | [docs:publishing]: https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/publishing_plugin.html | ||||||
|  | [docs:release-channel]: https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/deployment.html#specifying-a-release-channel | ||||||
| [docs:token]: https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/deployment.html#providing-your-hub-permanent-token-to-gradle | [docs:token]: https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/deployment.html#providing-your-hub-permanent-token-to-gradle | ||||||
| [docs:using-gradle]: https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system.html | [docs:using-gradle]: https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system.html | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -107,5 +107,6 @@ tasks { | |||||||
|     publishPlugin { |     publishPlugin { | ||||||
|         dependsOn("patchChangelog") |         dependsOn("patchChangelog") | ||||||
|         token(System.getenv("PUBLISH_TOKEN")) |         token(System.getenv("PUBLISH_TOKEN")) | ||||||
|  |         channels(pluginVersion.split('-').getOrElse(1) { "default" }) | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user