-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (37 loc) · 1.07 KB
/
regular-release.yml
File metadata and controls
38 lines (37 loc) · 1.07 KB
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
name: Regular Publish Release
permissions:
contents: read
on:
push:
tags: [ 'regular/*' ]
jobs:
build:
strategy:
matrix:
tc: [ 17, 21, 25 ]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./regular
env:
BUILD_EVENT: "release"
TARGET_COMPATIBILITY: ${{ matrix.tc }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
steps:
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 25
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
gradle-version: current
- name: Check out code
uses: actions/checkout@v4
- name: Build, Sign and Publish Release
run: chmod +x gradlew && ./gradlew clean compileJava publishToSonatype closeAndReleaseSonatypeStagingRepository