-
Notifications
You must be signed in to change notification settings - Fork 34
38 lines (32 loc) · 1018 Bytes
/
publish.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
name: Publish artifacts
on:
workflow_dispatch:
inputs:
tag:
description: "Specify the tag, branch, or commit to target for the publish action"
required: true
default: 'default'
type: string
jobs:
publish:
name: Publish artifacts with Gradle
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Verify source integrity
run: ./gradlew clean build
- name: Publish artifacts
run: ./gradlew publish
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USER_NAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_USER_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}