Skip to content

5.1.0-SNAPSHOT

5.1.0-SNAPSHOT #21

Workflow file for this run

name: Publish package to the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Version release
run: echo Releasing verion ${{ github.event.release.tag_name }}
- name: Publish package
run: ./gradlew publish
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}