Skip to content

Commit 2e67a04

Browse files
author
Julien Ruaux
committed
build: Fixed versioning
1 parent c300162 commit 2e67a04

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
release:
1111
name: Release
12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v3
@@ -31,12 +31,7 @@ jobs:
3131
- name: Set release version
3232
run: |
3333
VERSION=${{ github.event.inputs.version }}
34-
sed -i -e "s/^\:project-version\:\ .*/:project-version: $VERSION/g" README.adoc
35-
git add README.adoc
36-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
37-
git config --global user.name "GitHub Action"
38-
git commit -a -m "Releasing version $VERSION"
39-
git push origin master
34+
./mvnw versions:set -DnewVersion=$VERSION
4035
4136
- name: Build
4237
run: ./mvnw --no-transfer-progress -B --file pom.xml verify
@@ -57,6 +52,16 @@ jobs:
5752
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY}}
5853
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
5954
JRELEASER_SLACK_WEBHOOK: ${{ secrets.JRELEASER_SLACK_WEBHOOK }}
55+
56+
- name: Commit release version
57+
run: |
58+
VERSION=${{ github.event.inputs.version }}
59+
sed -i -e "s/^\:project-version\:\ .*/:project-version: $VERSION/g" README.adoc
60+
git add README.adoc
61+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
62+
git config --global user.name "GitHub Action"
63+
git commit -a -m "Releasing version $VERSION"
64+
git push origin master
6065
6166
- name: JReleaser output
6267
if: always()

jreleaser.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ project:
1010
groupId: com.redis
1111
version: 8
1212
multiProject: true
13-
extraProperties:
14-
inceptionYear: 2020
13+
inceptionYear: 2020
1514
tags:
1615
- 'redis'
1716
- 'redisearch'

0 commit comments

Comments
 (0)