Skip to content

Commit b5ea293

Browse files
Use action-gh-release (#3)
1 parent 356d50a commit b5ea293

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)