Skip to content

7.1.1

7.1.1 #34

Workflow file for this run

name: Publish to Sonatype
on:
release:
types: [released]
jobs:
publish-release:
runs-on: ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout code
uses: actions/checkout@v2
- name: Publish artifact to Sonatype
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
run: ./gradlew -Psonatype -Pversion=${{ github.event.release.tag_name }} clean build -x test publish