Commit fbcdf83 1 parent 981b265 commit fbcdf83 Copy full SHA for fbcdf83
File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
precheck :
13
13
runs-on : ubuntu-20.04
14
- if : startsWith(github.event.head_commit.message, '[maven-release-plugin] ') != true
14
+ if : startsWith(github.event.head_commit.message, 'Releasing version ') != true
15
15
outputs :
16
16
JAVAFX_VERSION : ${{ env.JAVAFX_VERSION }}
17
17
JAVA_VERSION : ${{ env.JAVA_VERSION }}
Original file line number Diff line number Diff line change @@ -119,18 +119,17 @@ jobs:
119
119
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
120
120
restore-keys : ${{ runner.os }}-m2
121
121
122
- - name : Maven release
123
- id : vars
124
- shell : bash
125
- run : |
126
- mvn -B -ntp \
127
- -Drepository.url=https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git \
128
- release:prepare
129
- mvn -pl :parent process-resources
130
-
131
122
- name : Download all build artifacts
132
123
uses : actions/download-artifact@v2
133
124
125
+ - name : Version
126
+ run : |
127
+ mvn -B -ntp versions:set versions:commit -DnewVersion=${{ needs.precheck.outputs.PROJECT_VERSION }}
128
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
129
+ git config --global user.name "GitHub Action"
130
+ git commit -a -m "Releasing version ${{ needs.precheck.outputs.PROJECT_VERSION }}"
131
+ git push origin master
132
+
134
133
- name : Release with JReleaser
135
134
env :
136
135
JRELEASER_GITHUB_TOKEN : ${{ secrets.PAT }}
You can’t perform that action at this time.
0 commit comments