-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (47 loc) · 1.92 KB
/
maven.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
44
45
46
47
48
49
50
51
52
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java Build and Tag Release with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Upstream - Maven Build (with mvn -B)
run: mvn -B package -f pom.xml
- name: Upstream - Java Maven Release
uses: qcastel/[email protected]
env:
JAVA_HOME: /usr/lib/jvm/java-11-openjdk/
with:
access-token: ${{ secrets.HEROPHILUS_ACCESS_TOKEN }}
release-branch-name: ${{ github.event.inputs.branch }}
version-major: ${{ github.event.inputs.increment-major }}
version-minor: ${{ github.event.inputs.increment-minor }}
maven-args: "-Dmaven.deploy.skip=true"
git-release-bot-name: "idaas-bot"
- name: RedHat Healthcare Maven Build (with mvn -B)
working-directory: ./iDaaS-KIC-Integration
run: mvn -B clean install -f pom-redhat.xml
- name: RedHat Healthcare - Java Maven Release
working-directory: ./iDaaS-KIC-Integration
uses: qcastel/[email protected]
env:
JAVA_HOME: /usr/lib/jvm/java-11-openjdk/
with:
access-token: ${{ secrets.HEROPHILUS_ACCESS_TOKEN }}
release-branch-name: ${{ github.event.inputs.branch }}
version-major: ${{ github.event.inputs.increment-major }}
version-minor: ${{ github.event.inputs.increment-minor }}
maven-args: "-Dmaven.deploy.skip=true -f pom-redhat.xml"
git-release-bot-name: "idaas-bot"