Skip to content

chore(deps): update dependency org.hibernate.reactive:hibernate-react… #414

chore(deps): update dependency org.hibernate.reactive:hibernate-react…

chore(deps): update dependency org.hibernate.reactive:hibernate-react… #414

Workflow file for this run

name: Publish to the Maven Central Repository
on:
push:
branches:
- develop
release:
types: [ published ]
concurrency:
group: publish-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
publish:
name: Publish to the Maven Central Repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Build with Grade
run: ./gradlew build
- name: Publish to the Maven Central Repository
run: ./gradlew --max-workers=1 publish closeAndReleaseStagingRepository
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_SECRET_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_SECRET_PASSWORD }}
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties