Maven Publish #42
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: Maven Publish | |
on: | |
workflow_dispatch: | |
inputs: | |
package: | |
description: 'Package to publish' | |
required: false | |
type: choice | |
options: | |
- adapters | |
- files | |
- functions | |
- i18n | |
- nbt | |
- paper | |
- sql | |
- utils | |
- version-checker | |
jobs: | |
build: | |
env: | |
REPOSITORY_USER: ${{ secrets.REPOSITORY_USER }} | |
REPOSITORY_TOKEN: ${{ secrets.REPOSITORY_TOKEN }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Publish with Gradle to Repository | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
arguments: ':${{ github.event.inputs.package }}:publish' |