-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 997 Bytes
/
release.yaml
File metadata and controls
32 lines (29 loc) · 997 Bytes
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
name: Publish package maven
permissions:
contents: read
pull-requests: read
on:
release:
types: [created]
jobs:
publish:
runs-on: macos-latest # for now build on macos for the jni
steps:
- uses: actions/checkout@v6
# build jni libs on osx
- run: ./update-rust-jni-libs.sh -r
- uses: actions/setup-java@v5
with:
java-version: '11'
distribution: 'temurin'
server-id: central
server-username: MAVEN_USERNAME # env variable for username in deploy
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Publish package
run: mvn -B -P release deploy
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USER }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSPHRASE }}