Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit a961901

Browse files
Merge branch 'master' into feature/support-return-values-in-execMaven
2 parents ac6889e + 215c3ae commit a961901

File tree

4 files changed

+96
-44
lines changed

4 files changed

+96
-44
lines changed

.github/workflows/maven-build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Default build validation "clean verify" for non-experimental branches
2+
3+
name: Build
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- 'experimental/**'
9+
pull_request:
10+
branches-ignore:
11+
- 'experimental/**'
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
# Check out Git repository
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
# Set up environment with Java and Maven
24+
- name: Setup JDK
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: 1.8
28+
29+
# Set up dependency cache
30+
- name: Cache local Maven repository
31+
uses: actions/cache@v2
32+
with:
33+
path: ~/.m2/repository
34+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
35+
restore-keys: |
36+
${{ runner.os }}-maven-
37+
38+
# Build & verify
39+
- name: Build and verify
40+
run: mvn -s ./.maven-settings.xml -B -U clean verify
41+
42+
# Run code coverage check
43+
- name: Run code coverage check
44+
run: bash <(curl -s https://codecov.io/bash)

.github/workflows/maven-deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Deploy snapshots to Sonatpe OSS repository
2+
3+
name: Deploy
4+
5+
on:
6+
workflow_run:
7+
workflows:
8+
- Build
9+
branches:
10+
- master
11+
types:
12+
- completed
13+
14+
jobs:
15+
deploy:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
# Check out Git repository
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
# Set up environment with Java and Maven
25+
- name: Setup JDK
26+
uses: actions/setup-java@v1
27+
with:
28+
java-version: 1.8
29+
30+
# Set up dependency cache
31+
- name: Cache local Maven repository
32+
uses: actions/cache@v2
33+
with:
34+
path: ~/.m2/repository
35+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
36+
restore-keys: |
37+
${{ runner.os }}-maven-
38+
39+
# Build, deploy to ossrh, deploy site to Github Pages, generate and stage site
40+
- name: Build, verify, deploy
41+
env:
42+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
43+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
44+
run: mvn -s ./.maven-settings.xml -B -U clean deploy

.travis.maven-settings.xml renamed to .maven-settings.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,12 @@
9090
<activeProfile>default</activeProfile>
9191
</activeProfiles>
9292

93+
<servers>
94+
<server>
95+
<id>ossrh</id>
96+
<username>${env.SONATYPE_USERNAME}</username>
97+
<password>${env.SONATYPE_PASSWORD}</password>
98+
</server>
99+
</servers>
100+
93101
</settings>

.travis.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)