forked from unbroken-dome/gradle-helm-plugin
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from Citi/updateRelease
Update publication guide
- Loading branch information
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
# Gradle plugin publication | ||
# New version publication | ||
|
||
This page describes Gradle Plugin publication to [Gradle Plugin Portal](https://plugins.gradle.org/). | ||
This page describes how to publish a new version of plugin and all related artifacts. | ||
|
||
Steps: | ||
|
||
1. Receive API Key and Secret from the portal (please | ||
follow [the documentation](https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html)). | ||
2. Navigate to `Actions` and locate | ||
the [publish workflow](./workflows/publish.yaml). GitHub | ||
1. Create a PR with version increment in [gradle.properties](../gradle.properties). Please follow [semver guidelines](https://semver.org/): | ||
1. If there are breaking `.api` files - increment the major version (e.g. from `x.y.z` to `x+1.0.0`) | ||
2. If current version is compatible with previous one and there are some notable changes - please increment the minor one (e.g. from `x.y.z` to `x.y+1.0`) | ||
3. Otherwise - please increment the patch version (e.g. from `x.y.z` to `x.y.z+1`). | ||
2. Receive API Key and Secret from the portal (please | ||
follow [the documentation](https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html)) and add them into the project secrets. | ||
3. Run publication workflows: | ||
1. Navigate to [Actions](https://github.com/Citi/gradle-helm-plugin/actions/workflows/) and locate | ||
the [publish workflow](./workflows/publish.yaml) and [publish documentation one](./workflows/publish.yaml). GitHub | ||
documentation: https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow | ||
3. Insert API Key and Secret from the item '1' above. | ||
4. Create PR with version increment in [gradle.properties](../gradle.properties) | ||
5. Release [the version on GitHub](https://docs.github.com/en/repositories/releasing-projects-on-github). | ||
2. Run both workflows | ||
4. Release [the version on GitHub](https://docs.github.com/en/repositories/releasing-projects-on-github). |