-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (24 loc) · 948 Bytes
/
publish-library.yaml
File metadata and controls
30 lines (24 loc) · 948 Bytes
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
name: Publish library
on:
workflow_dispatch:
jobs:
# Took it from https://github.com/chrisbanes/haze/blob/main/.github/workflows/build.yml
deploy:
runs-on: macos-15
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- name: Setup JDK
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: 20
- uses: gradle/gradle-build-action@v3.5.0
- name: Deploy to Sonatype
run: ./gradlew publish --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}