Publish artifacts #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |