-
Notifications
You must be signed in to change notification settings - Fork 55
43 lines (39 loc) · 1.37 KB
/
xtf-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
name: XTF Maven Release
on:
push:
branches:
- '**'
tags:
- '**'
jobs:
test:
name: Deploy to Maven repos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
java-package: jdk
architecture: x64
- name: Check well-formatted code
run: mvn -B formatter:validate impsort:check
- name: Maven Package
run: mvn install -B -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Maven Verify
run: mvn -B clean verify
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v12
with:
servers: '[{ "id": "jboss-releases-repository", "username": "${env.JBOSS_REPO_USER}", "password": "${env.JBOSS_REPO_PASSWORD}" },{ "id": "jboss-snapshots-repository", "username": "${env.JBOSS_REPO_USER}", "password": "${env.JBOSS_REPO_PASSWORD}" }]'
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v1
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Maven Deploy
run: mvn -X deploy -DskipTests -Prelease
env:
JBOSS_REPO_PASSWORD: ${{ secrets.JBOSS_REPO_PASSWORD }}
JBOSS_REPO_USER: ${{ secrets.JBOSS_REPO_USER }}