-
Notifications
You must be signed in to change notification settings - Fork 99
35 lines (32 loc) · 1018 Bytes
/
deploy.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
34
35
name: Maven Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Maven Deploy
run: mvn -B -V deploy -Ddeploy -Dgpg.signer=bc
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_GPG_KEY: ${{ secrets.MAVEN_SIGNING_KEY }}
MAVEN_GPG_PASSPHRASE: ""
- name: Generate javadocs
run: mvn compile javadoc:aggregate
- name: Publish javadocs
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: target/reports/apidocs