-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (37 loc) · 1.64 KB
/
maven-release.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
37
38
39
40
41
42
43
name: Maven Release
on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Default version to use when preparing a release."
required: true
default: "X.Y.Z"
developmentVersion:
description: "Default version to use for new local working copy (-SNAPSHOT appended)"
required: true
default: "X.Y.Z"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Configure Git user
run: |
git config user.email "wdeploy@webdrone.com"
git config user.name "wdeploy"
git config user.username "wdeploy"
git config user.password "${{ github.token }}"
- name: Maven release
run: mvn release:prepare release:perform -B -e -U -s $GITHUB_WORKSPACE/settings.xml --file pom.xml -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}-SNAPSHOT -DautoVersionSubmodules=true -Dtag=${{ github.event.inputs.releaseVersion }} -DreleaseOption="-DskipTests=true -Dmaven.javadoc.skip=true" -Dresume=false -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.javadoc.skip=true -DconnectionUrl=https://${{github.token}}@github.com/meveo-org/meveo.git
env:
GITHUB_TOKEN: ${{ github.token }}