-
Notifications
You must be signed in to change notification settings - Fork 48
37 lines (31 loc) · 942 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
35
36
37
name: Release
on:
push:
tags:
- '*'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
java_version: [17]
os: [windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
- name: Build with Gradle
run: |
./gradlew build javadoc asciidoc -PfailBuildOnCVSS=4
- name: Publish to Maven Central
env:
MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
PGP_SIGNING_KEY: ${{ secrets.PGP_SIGNING_KEY }}
PGP_SIGNING_KEY_PASSPHRASE: ${{ secrets.PGP_SIGNING_KEY_PASSPHRASE }}
run: |
./gradlew publishStandardPublicationToMavenCentralRepository