Skip to content

Commit 4a6c1a6

Browse files
committed
adds workflows
1 parent 6e95d14 commit 4a6c1a6

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

.github/workflows/maven-build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI Build with Maven
5+
6+
on: [push, pull_request]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- name: Build with Maven
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
run: mvn -B verify --file pom.xml
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will publish a Java project with Maven
2+
# For more information see: https://docs.github.com/en/free-pro-team@latest/actions/guides/publishing-java-packages-with-maven
3+
4+
name: Java CI Publish with Maven
5+
6+
on:
7+
pull_request:
8+
types: [closed]
9+
branches: [develop]
10+
release:
11+
types: [published]
12+
13+
jobs:
14+
publish:
15+
16+
# Only run if releases are published or pull requests are merged,
17+
# omit running if pull requests are closed without merging
18+
if: github.event.pull_request.merged || github.event.action == 'published'
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up JDK 11
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 11
28+
- name: Publish with Maven
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: mvn -B deploy --file pom.xml

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# HiGHmed Processes
22

3+
![Java CI Build with Maven](https://github.com/highmed/highmed-processes/workflows/Java%20CI%20Build%20with%20Maven/badge.svg)
4+
35
In this repository you will find the processes of the HiGHmed consortia, that can be deployed on the [HiGHmed DSF](https://github.com/highmed/highmed-dsf).
46

57
## Development

0 commit comments

Comments
 (0)