This page describes the different steps to make a new release.
- Check if all commits for the next release are present on the
dev
branch - Checkout the
dev
branch - Update the parent
pom.xml
file with the next version suffixed with-SNAPSHOT
Example when the next version is1.1.0
:<project xmlns="..." xmlns:xsi="..." xsi:schemaLocation="..."> ... <groupId>com.weedow</groupId> <artifactId>weedow-searchy-parent</artifactId> <version>1.1.0-SNAPSHOT</version> ... </project>
- Update the other
pom.xml
files with the same SNAPSHOT version
Example in thepom.xml
file of thecore
module:<project xmlns="..." xmlns:xsi="..." xsi:schemaLocation="..."> ... <parent> <groupId>com.weedow</groupId> <artifactId>weedow-searchy-parent</artifactId> <version>1.1.0-SNAPSHOT</version> </parent> <artifactId>weedow-searchy-core</artifactId> <name>weedow-searchy-core</name> <description>Searchy Core Library</description> ... </project>
- Update the
README.md
file with the next version. Replace everywhere the last release version with the next version.
Example in theInstallation
section, when the next version is1.1.0
:Do the same thing everywhere in the* If you have a [Maven](https://maven.apache.org/) project, you can add the following dependency in your `pom.xml` file: <dependency> <groupId>com.weedow</groupId> <artifactId>weedow-searchy-jpa</artifactId> <version>1.1.0</version> </dependency> * If you have a [Gradle](https://gradle.org/) project, you can add the following dependency in your `build.gradle` file: implementation "com.weedow:weedow-searchy-jpa:1.1.0"
README.md
file - Commit and push the changes
- Create a Pull Request from
dev
intomaster
Github Workflowrelease.yml
checks if there is a git push in themaster
branch in order to release a new version.
Currently, themaster
branch is only used for release creation.
DO NOT COMMIT AND PUSH DIRECTLY IN THEMASTER
BRANCH, OTHERWISE A NEW RELEASE WILL BE CREATED! - Wait for the analysis to be completed, and Merge the PR
- Wait for the
Release
Github Action is completed - Check if the new git tag related to the new release has been created
- Check if the Github Releases page contains the new release
- Check if the
master
branch contains the following commits:[maven-release-plugin] prepare release 1.0.0 [maven-release-plugin] prepare for next development iteration
- Create a Pull Request from
master
intodev
The release creation is finished. The main branchdev
has to be updated with the last commits containing the nextSNAPSHOT
version - Wait for the analysis to be completed, and Merge the PR