Skip to content

Commit c1610e7

Browse files
committed
Merge branch '2.13' into 2.14
2 parents 9e6e87f + 171f9c9 commit c1610e7

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
- master
66
- "3.0"
77
- "2.14"
8-
- "2.13"
98
paths-ignore:
109
- "README.md"
1110
- "release-notes/*"
@@ -14,7 +13,6 @@ on:
1413
- master
1514
- "3.0"
1615
- "2.14"
17-
- "2.13"
1816
paths-ignore:
1917
- "README.md"
2018
- "release-notes/*"
@@ -39,12 +37,28 @@ jobs:
3937
server-id: sonatype-nexus-snapshots
4038
server-username: CI_DEPLOY_USERNAME
4139
server-password: CI_DEPLOY_PASSWORD
40+
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
41+
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
42+
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
4243
- name: Build
43-
run: ./mvnw -V -B -ff -ntp verify
44+
run: ./mvnw -B -q -ff -ntp verify
45+
- name: Extract project Maven version
46+
id: projectVersion
47+
run: echo ::set-output name=version::$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -DforceStdout -Dexpression=project.version -q)
4448
- name: Deploy snapshot
45-
if: github.event_name != 'pull_request' && matrix.java_version == '8'
49+
if: github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
4650
env:
4751
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
4852
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
4953
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
50-
run: ./mvnw -V -B -ff -DskipTests -ntp source:jar deploy
54+
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
55+
- name: Generate code coverage
56+
if: github.event_name != 'pull_request' && matrix.java_version == '8'
57+
run: ./mvnw -B -q -ff -ntp test
58+
- name: Publish code coverage
59+
if: github.event_name != 'pull_request' && matrix.java_version == '8'
60+
uses: codecov/codecov-action@v1
61+
with:
62+
token: ${{ secrets.CODECOV_TOKEN }}
63+
file: ./target/site/jacoco/jacoco.xml
64+
flags: unittests

0 commit comments

Comments
 (0)