-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
59 lines (59 loc) · 2.03 KB
/
action.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 'maven deploy'
description: 'deploy using maven as build tool'
inputs:
java-version:
description: 'jdk version'
default: '17'
java-distribution:
description: 'jdk distribution'
default: 'temurin'
gpg-private-key:
description: 'private key for artifact signing'
required: true
gpg-key-name:
description: 'name of the gpg private key'
required: true
gpg-passphrase:
description: 'pass phrase for te gpg signing key'
required: true
deploy-user:
description: "user to authenticate at artifact repository"
required: true
deploy-password:
description: "password to authenticate at artifact repository"
required: true
global-settings-location:
description: "path inside the repository to the global maven settings used to deploy release artifacts"
default: "deployment/global-settings.xml"
git-ssh-private-key:
description: "private ssh key to push git changes to github pages repository"
default: ''
runs:
using: "composite"
steps:
- uses: webfactory/[email protected]
if: ${{ inputs.git-ssh-private-key != '' }}
with:
ssh-private-key: ${{ inputs.git-ssh-private-key }}
- uses: actions/checkout@v4
- name: set up jdk
uses: actions/setup-java@v4
with:
java-version: ${{ inputs.java-version }}
distribution: ${{ inputs.java-distribution }}
cache: maven
server-id: github
gpg-private-key: ${{ inputs.gpg-private-key }}
- name: Configure Git user
shell: bash
run: |
git config --global user.email "[email protected]"
git config --global user.name "eitco"
- name: maven release
shell: bash
run: export GPG_TTY=$(tty) && mvn --batch-mode -e --global-settings ${{ inputs.global-settings-location }} release:prepare release:perform
env:
GPG_KEY_NAME: ${{ inputs.gpg-key-name }}
MAVEN_GPG_PASSPHRASE: ${{ inputs.gpg-passphrase }}
OSSRH_JIRA_USERNAME: ${{ inputs.deploy-user }}
OSSRH_JIRA_PASSWORD: ${{ inputs.deploy-password }}