File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,20 @@ jobs:
24
24
server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
25
25
settings-path : ${{ github.workspace }} # location for the settings.xml file
26
26
27
- - name : Build
28
- env :
29
- CODECOV_TOKEN : ${{secrets.CODECOV_TOKEN}}
30
- run : mvn -B package --file pom.xml -Pcoverage -Dsytle.colors=always --errors
31
- - name : Upload coverage to Codecov
32
- uses : codecov/codecov-action@v1
33
- with :
34
- token : ${{ secrets.CODECOV_TOKEN }}
35
27
- name : Release
36
28
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
37
29
uses : samuelmeuli/action-maven-publish@v1
38
30
with :
39
31
gpg_private_key : ${{ secrets.gpg_private_key }}
40
32
gpg_passphrase : ${{ secrets.gpg_passphrase }}
41
33
nexus_username : ${{ secrets.nexus_username }}
42
- nexus_password : ${{ secrets.nexus_password }}
34
+ nexus_password : ${{ secrets.nexus_password }}
35
+ - name : Upload coverage to Codecov
36
+ uses : codecov/codecov-action@v1
37
+ with :
38
+ token : ${{ secrets.CODECOV_TOKEN }}
39
+ - name : Release
40
+ uses : softprops/action-gh-release@v1
41
+ if : startsWith(github.ref, 'refs/tags/')
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments