Skip to content

Merge pull request #10 from burnoo/post-release-updates/0.2.0 #4

Merge pull request #10 from burnoo/post-release-updates/0.2.0

Merge pull request #10 from burnoo/post-release-updates/0.2.0 #4

name: Publish Snapshot to Sonatype repository
on:
push:
branches: ["main"]
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
concurrency:
group: "snapshot"
cancel-in-progress: true
jobs:
publish:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Publish to Sonatype Snapshot repository
run: ./gradlew publishAllPublicationsToSonatypeSnapshotRepository