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:
2424 server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
2525 settings-path : ${{ github.workspace }} # location for the settings.xml file
2626
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 }}
3527 - name : Release
3628 # if: github.event_name == 'push' && github.ref == 'refs/heads/master'
3729 uses : samuelmeuli/action-maven-publish@v1
3830 with :
3931 gpg_private_key : ${{ secrets.gpg_private_key }}
4032 gpg_passphrase : ${{ secrets.gpg_passphrase }}
4133 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