Skip to content

Commit 3358606

Browse files
authored
fix: merge cicd in one yml (#18)
1 parent e1bec82 commit 3358606

File tree

2 files changed

+22
-28
lines changed

2 files changed

+22
-28
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,25 @@ jobs:
4242
prerelease: false
4343
title: "Release v${{ env.RELEASE_VERSION }}"
4444
files: |
45-
staging/*.jar
45+
staging/*.jar
46+
47+
publish:
48+
runs-on: ubuntu-latest
49+
environment: production
50+
steps:
51+
- uses: actions/checkout@v4
52+
- name: Set up Maven Central Repository
53+
uses: actions/setup-java@v3
54+
with:
55+
java-version: '8'
56+
distribution: 'temurin'
57+
cache: 'maven'
58+
59+
- name: Publish to the Maven Central Repository
60+
uses: samuelmeuli/action-maven-publish@v1
61+
with:
62+
maven_args: '-DskipTests'
63+
gpg_private_key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
64+
gpg_passphrase: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
65+
nexus_username: ${{ secrets.OSSRH_USERNAME }}
66+
nexus_password: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)