File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,24 @@ jobs:
43
43
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
44
44
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
45
45
- name : Build
46
- run : ./mvnw -V -B -ff -ntp verify
46
+ run : ./mvnw -B -q -ff -ntp verify
47
+ - name : Extract project Maven version
48
+ id : projectVersion
49
+ run : echo ::set-output name=version::$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -DforceStdout -Dexpression=project.version -q)
47
50
- name : Deploy snapshot
48
- if : github.event_name != 'pull_request' && matrix.java_version == '8'
51
+ if : github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
49
52
env :
50
53
CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME }}
51
54
CI_DEPLOY_PASSWORD : ${{ secrets.CI_DEPLOY_PASSWORD }}
52
55
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
53
- run : ./mvnw -V -B -ff -DskipTests -ntp source:jar deploy
56
+ run : ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
57
+ - name : Generate code coverage
58
+ if : github.event_name != 'pull_request' && matrix.java_version == '8'
59
+ run : ./mvnw -B -q -ff -ntp test
60
+ - name : Publish code coverage
61
+ if : github.event_name != 'pull_request' && matrix.java_version == '8'
62
+ uses : codecov/codecov-action@v1
63
+ with :
64
+ token : ${{ secrets.CODECOV_TOKEN }}
65
+ file : ./target/site/jacoco/jacoco.xml
66
+ flags : unittests
You can’t perform that action at this time.
0 commit comments