Skip to content

Commit

Permalink
Add/fix some version scripting to the Release Guide
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Aug 27, 2021
1 parent a6fd391 commit b3dc133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/contributor-guide/release-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ xref:latest@manual::release-guide.adoc[Camel Release guide].

[source,shell]
----
$ export VERSION=... # the version you are releasing, e.g. 0.1.0
$ export NEXT_VERSION=$(echo ${VERSION} | awk -F. -v OFS=. '{$NF++;print}') # the next development iteration, e.g. 0.1.1-SNAPSHOT
$ export VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's|-SNAPSHOT||') # the version you are releasing, e.g. 0.1.0
$ export NEXT_VERSION=$(echo ${VERSION} | awk -F. -v OFS=. '{$NF++;print}')-SNAPSHOT # the next development iteration, e.g. 0.1.1-SNAPSHOT
$ export BRANCH=$(echo $VERSION | sed 's|.[0-9][0-9]*$|.x|') # the release branch, e.g. 0.1.x
$ git fetch upstream # upstream is [email protected]:apache/camel-quarkus.git
$ git checkout main # main is the branch from which you want to release
Expand Down

0 comments on commit b3dc133

Please sign in to comment.