-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.32 KB
/
prepare_release.yml
File metadata and controls
45 lines (40 loc) · 1.32 KB
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
37
38
39
40
41
42
43
44
45
name: Prepare Release to Maven Central
on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Release and tag version'
required: true
default: "1.5.0"
developmentVersion:
description: 'Version to use for new working copy'
required: true
default: '2.0.0-SNAPSHOT'
jobs:
release:
runs-on: ubuntu-20.04-self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Configure Git user
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
- name: Run release release.yml
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}
RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }}
DEVELOPMENT_VERSION: ${{ github.event.inputs.developmentVersion }}
run: |
./mvnw release:prepare -DskipTests -Darguments=-DskipTests \
-DreleaseVersion="$RELEASE_VERSION" -Dtag="$RELEASE_VERSION" \
-DdevelopmentVersion="$DEVELOPMENT_VERSION"