Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit f6f4a12

Browse files
committed
Finalizing the maven push workflow
1 parent 83554a2 commit f6f4a12

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will deploy the Serializers and the Validator to the sonatype
2+
# staging environment. This will NOT automatically publish the artifacts. An
3+
# authorized user must still manually close the staging repository first.
4+
5+
name: Generate and Deploy to Sonatype
6+
7+
on:
8+
push:
9+
branches: [ main ]
10+
11+
jobs:
12+
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up JDK 1.8
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: 11
22+
distribution: 'adopt'
23+
server-id: ossrh
24+
server-username: OSSRH_USERNAME
25+
server-password: OSSRH_PASSWORD
26+
gpg-private-key: ${{ secrets.MYGPGKEY_SEC }}
27+
28+
- name: Publish to Apache Maven Central
29+
run: mvn -P MavenCentral license:format deploy
30+
env:
31+
OSSRH_USERNAME: sebbader
32+
OSSRH_PASSWORD: ${{ secrets.SEBBADER_OSSHR_PASSWORD }}
33+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSWORD }}
34+
GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSWORD }}

0 commit comments

Comments
 (0)