Skip to content

Commit 84dadda

Browse files
authored
Merge pull request #19 from securenative/dev
Updated publish with gpg
2 parents c629390 + 3d28350 commit 84dadda

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ jobs:
3434
- name: Run Tests
3535
run: mvn test
3636

37-
- name: Publish package
38-
run: mvn -B deploy
39-
env:
40-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
41-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
37+
- name: Release Maven package
38+
uses: samuelmeuli/action-maven-publish@v1
39+
with:
40+
gpg_private_key: ${{ secrets.gpg_private_key }}
41+
gpg_passphrase: ${{ secrets.gpg_passphrase }}
42+
nexus_username: ${{ secrets.nexus_username }}
43+
nexus_password: ${{ secrets.nexus_password }}
4244

4345
- name: Notify slack success
4446
if: success()
@@ -50,7 +52,7 @@ jobs:
5052
channel: github-actions
5153
status: SUCCESS
5254
color: good
53-
55+
5456
- name: Notify slack fail
5557
if: failure()
5658
env:

0 commit comments

Comments
 (0)