-
Notifications
You must be signed in to change notification settings - Fork 231
33 lines (30 loc) · 1.02 KB
/
maven-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy to maven central
on:
release:
types: [ "created" ]
jobs:
build:
name: Build, test and publish to Github Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker Compose Action
uses: isbang/[email protected]
- name: Docker Compose Action
uses: isbang/[email protected]
- name: Set up JDK 17 and Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: publish to maven central
run: mvn -P release --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}