-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (33 loc) · 1022 Bytes
/
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
34
---
name: Publish package
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out project
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
server-id: ossrh
server-username: MAVEN_SONATYPE_USERNAME
server-password: MAVEN_SONATYPE_PASSPHRASE
cache: maven
- name: Publish package
run: ./.github/workflows/bin/deploy-multi.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
MAVEN_SONATYPE_USERNAME: ${{ secrets.MAVEN_SONATYPE_USERNAME }}
MAVEN_SONATYPE_PASSPHRASE: ${{ secrets.MAVEN_SONATYPE_PASSPHRASE }}