-
Notifications
You must be signed in to change notification settings - Fork 108
36 lines (34 loc) · 1.02 KB
/
prepare.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Prepare release
on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Release version"
required: true
default: "X.Y.Z"
developmentVersion:
description: "Development version"
required: true
default: "X.Y.Z-SNAPSHOT"
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.RELEASE_PAT }}
- run: |
git config --global user.name 'Cuong Tran'
git config --global user.email '[email protected]'
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Prepare release
run: |
mvn -V -B -ntp release:prepare \
-DpreparationGoals=validate \
-DpushChanges=false \
-DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} \
-DreleaseVersion=${{ github.event.inputs.releaseVersion }}
git push --tags && git push