-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (44 loc) · 1.31 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
name: Assembly and release
on:
workflow_call:
secrets:
SIGNING_KEY_ID:
required: true
SIGNING_PASSWORD:
required: true
SIGNING_SECRET_FILE:
required: true
RELEASER_NEXUS2_USERNAME:
required: true
RELEASER_NEXUS2_PASSWORD:
required: true
push:
branches-ignore:
- main
permissions:
id-token: write
contents: write
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Assembly
uses: gradle/gradle-build-action@v2
with:
arguments: assemble sourcesJar javadocJar --parallel --stacktrace
- name: Sign & publish to Maven Central
uses: gradle/gradle-build-action@v2
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_FILE: ${{ secrets.SIGNING_SECRET_FILE }}
RELEASER_NEXUS2_USERNAME: ${{ secrets.RELEASER_NEXUS2_USERNAME }}
RELEASER_NEXUS2_PASSWORD: ${{ secrets.RELEASER_NEXUS2_PASSWORD }}
with:
arguments: assemble sourcesJar javadocJar signAllPublications publish --stacktrace