-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (33 loc) · 1.2 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
name: Release
on:
push:
branches: [ main ]
tags: [ "*" ]
jobs:
release:
runs-on: macos-latest
steps:
- name: Check out the repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Install JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 20
- name: Assemble for release
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: assemble
- name: Publish
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: publish --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_personalSonatypeIssuesUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_personalSonatypeIssuesPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_personalGpgKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_personalGpgPassword }}