-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (37 loc) · 1.01 KB
/
check.yml
File metadata and controls
38 lines (37 loc) · 1.01 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: Maven Publish
on:
workflow_call:
inputs:
channel:
required: true
type: string
secrets:
signingKeyId:
required: true
signingPassword:
required: true
signingKey:
required: true
sonatypeUsername:
required: true
sonatypePassword:
required: true
jobs:
check-update:
runs-on: ubuntu-latest
env:
HMCL_UPDATE_CHANNEL: ${{ inputs.channel }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '25'
- name: Publish to Maven Central
run: ./gradlew --no-daemon --info upload -Phmcl.channel=$HMCL_UPDATE_CHANNEL
env:
SIGNING_KEY_ID: ${{ secrets.signingKeyId }}
SIGNING_PASSWORD: ${{ secrets.signingPassword }}
SIGNING_KEY: ${{ secrets.signingKey }}
SONATYPE_USERNAME: ${{ secrets.sonatypeUsername }}
SONATYPE_PASSWORD: ${{ secrets.sonatypePassword }}