-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly provide current SNAPSHOT version in release
- Utilise sed instead of mvn versions:set so that Infinispan does not have to be built during the release
- Loading branch information
1 parent
cc06cbd
commit 782a2b7
Showing
1 changed file
with
5 additions
and
12 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 |
---|---|---|
|
@@ -7,6 +7,9 @@ on: | |
description: "The branch to checkout when cutting the release." | ||
required: true | ||
default: "master" | ||
currentVersion: | ||
description: "The current SNAPSHOT version of the branch to cut the release from." | ||
required: true | ||
releaseVersion: | ||
description: "Release version." | ||
required: true | ||
|
@@ -48,22 +51,12 @@ jobs: | |
git config user.email "[email protected]" | ||
git config user.name "Infinispan" | ||
- name: Checkout Infinispan SNAPSHOT | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: infinispan/infinispan | ||
path: infinispan | ||
|
||
- name: Compile Infinispan SNAPSHOT | ||
run: mvn -B -V install -s maven-settings.xml -DskipTests=true -am -pl server/tests | ||
working-directory: infinispan | ||
|
||
- name: Tag release | ||
run: | | ||
mvn -B -V versions:set -DnewVersion=${{ github.event.inputs.releaseVersion }} -DprocessAllModules=true versions:commit | ||
find . -name "pom.xml" | xargs sed -i 's/<version>${{ github.event.inputs.currentVersion }}</version>/<version>${{ github.event.inputs.releaseVersion }}<\\version>/g' | ||
git commit -a -m "Releasing ${{ github.event.inputs.releaseVersion }}" | ||
git tag ${{ github.event.inputs.releaseVersion }} | ||
mvn -B -V versions:set -DnewVersion=${{ github.event.inputs.developmentVersion }} -DprocessAllModules=true versions:commit | ||
find . -name "pom.xml" | xargs sed -i 's/<version>${{ github.event.inputs.releaseVersion }}</version>/<version>${{ github.event.inputs.developmentVersion }}<\\version>/g' | ||
git commit -a -m "Next version ${{ github.event.inputs.developmentVersion }}" | ||
- name: Push changes | ||
|