Skip to content

Try to fix automatic close and release of sontaype staging repo #3

Try to fix automatic close and release of sontaype staging repo

Try to fix automatic close and release of sontaype staging repo #3

name: Publish snapshot
on:
push:
branches:
- 'main'
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish to OSS Snapshots repository
run: ./gradlew clean publish -x test --no-scan --no-daemon --no-build-cache --stacktrace
env:
OSSRH_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}