Skip to content

Commit ad30cb0

Browse files
committed
ci[publish]: deploy github action
1 parent 9059f22 commit ad30cb0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Maven Central Repo Deployment
2+
on:
3+
release:
4+
types: [ released ]
5+
jobs:
6+
publish-central:
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- name: Checkout Git Repo
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Apache Maven Central
14+
uses: actions/setup-java@v4
15+
with:
16+
distribution: 'zulu'
17+
java-version: '17'
18+
server-id: central
19+
server-username: SERVER_USERNAME
20+
server-password: SERVER_PASSWORD
21+
gpg-private-key: ${{ secrets.GPG_SECRET }}
22+
gpg-passphrase: GPG_PASSPHRASE
23+
24+
- name: Publish to Apache Maven Central
25+
run: mvn deploy
26+
env:
27+
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
28+
SERVER_PASSWORD: ${{ secrets.SERVER_PASSWORD }}
29+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}

0 commit comments

Comments
 (0)