Skip to content

Commit 346a97e

Browse files
committed
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
1 parent cc06cbd commit 346a97e

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/release.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
description: "The branch to checkout when cutting the release."
88
required: true
99
default: "master"
10+
currentVersion:
11+
description: "The current SNAPSHOT version of the branch to cut the release from."
12+
required: true
1013
releaseVersion:
1114
description: "Release version."
1215
required: true
@@ -48,22 +51,12 @@ jobs:
4851
git config user.email "[email protected]"
4952
git config user.name "Infinispan"
5053
51-
- name: Checkout Infinispan SNAPSHOT
52-
uses: actions/checkout@v2
53-
with:
54-
repository: infinispan/infinispan
55-
path: infinispan
56-
57-
- name: Compile Infinispan SNAPSHOT
58-
run: mvn -B -V install -s maven-settings.xml -DskipTests=true -am -pl server/tests
59-
working-directory: infinispan
60-
6154
- name: Tag release
6255
run: |
63-
mvn -B -V versions:set -DnewVersion=${{ github.event.inputs.releaseVersion }} -DprocessAllModules=true versions:commit
56+
find . -name "pom.xml" | xargs sed -i 's/<version>${{ github.event.inputs.currentVersion }}<\/version>/<version>${{ github.event.inputs.releaseVersion }}<\/version>/g'
6457
git commit -a -m "Releasing ${{ github.event.inputs.releaseVersion }}"
6558
git tag ${{ github.event.inputs.releaseVersion }}
66-
mvn -B -V versions:set -DnewVersion=${{ github.event.inputs.developmentVersion }} -DprocessAllModules=true versions:commit
59+
find . -name "pom.xml" | xargs sed -i 's/<version>${{ github.event.inputs.releaseVersion }}<\/version>/<version>${{ github.event.inputs.developmentVersion }}<\/version>/g'
6760
git commit -a -m "Next version ${{ github.event.inputs.developmentVersion }}"
6861
6962
- name: Push changes

0 commit comments

Comments
 (0)