-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d730abe
commit 87aa6c2
Showing
1 changed file
with
26 additions
and
7 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 |
---|---|---|
|
@@ -30,13 +30,32 @@ jobs: | |
distribution: "temurin" | ||
cache: 'maven' | ||
cache-dependency-path: '${{ github.event.inputs.service }}/pom.xml' | ||
- name: Perform maven release | ||
run: > | ||
mvn -B -ntp release:prepare -f backend/pom.xml | ||
-DreleaseVersion=${{ github.event.inputs.release-version }} | ||
-DdevelopmentVersion=${{ github.event.inputs.development-version }} | ||
-Dtag=${{ github.event.inputs.service }}/v${{ github.event.inputs.release-version }} | ||
-Darguments="-DskipTests" | ||
- name: set release version | ||
id: set-version-release | ||
run: | | ||
current_version=$(mvn help:evaluate -f ${{ github.event.inputs.service }}/pom.xml -Dexpression=project.version -q -DforceStdout) | ||
echo "Current version: $current_version" | ||
echo "New version: ${{ github.event.inputs.release-version }}" | ||
mvn -B versions:set -f ${{ github.event.inputs.service }}/pom.xml -DnewVersion=${{ github.event.inputs.release-version }} | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git add ${{ github.event.inputs.service }}/pom.xml | ||
git commit -m "Bump backend main version to ${{ github.event.inputs.release-version }}" | ||
git push | ||
echo "new_version_release=${{ github.event.inputs.release-version }} >> $GITHUB_OUTPUT | ||
- name: set release version | ||
id: set-version-release | ||
run: | | ||
current_version=$(mvn help:evaluate -f ${{ github.event.inputs.service }}/pom.xml -Dexpression=project.version -q -DforceStdout) | ||
echo "Current version: $current_version" | ||
echo "New version: ${{ github.event.inputs.release-version }}" | ||
mvn -B versions:set -f ${{ github.event.inputs.service }}/pom.xml -DnewVersion=${{ github.event.inputs.development-version }} | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git add ${{ github.event.inputs.service }}/pom.xml | ||
git commit -m "Bump backend main version to ${{ github.event.inputs.development-version }}" | ||
git push | ||
echo "new_version_dev=${{ github.event.inputs.development-version }} >> $GITHUB_OUTPUT | ||
# build-gh-release: | ||
# permissions: | ||
|