File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
release :
11
11
name : Release
12
- runs-on : ubuntu-18.04
12
+ runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v3
31
31
- name : Set release version
32
32
run : |
33
33
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
40
35
41
36
- name : Build
42
37
run : ./mvnw --no-transfer-progress -B --file pom.xml verify
57
52
JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.GPG_PUBLIC_KEY}}
58
53
JRELEASER_GPG_SECRET_KEY : ${{ secrets.GPG_SECRET_KEY }}
59
54
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
60
65
61
66
- name : JReleaser output
62
67
if : always()
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ project:
10
10
groupId : com.redis
11
11
version : 8
12
12
multiProject : true
13
- extraProperties :
14
- inceptionYear : 2020
13
+ inceptionYear : 2020
15
14
tags :
16
15
- ' redis'
17
16
- ' redisearch'
You can’t perform that action at this time.
0 commit comments