Skip to content

Merge pull request #21 from LDRAlighieri/renovate/configure #22

Merge pull request #21 from LDRAlighieri/renovate/configure

Merge pull request #21 from LDRAlighieri/renovate/configure #22

Workflow file for this run

name: Publish
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Check build-logic
run: ./gradlew check -p build-logic
- name: Check spotless
run: ./gradlew spotlessCheck --no-configuration-cache
- name: Build the sample app to verify it works
run: ./gradlew sample:assemble
- name: Deploy to Sonatype
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
./gradlew publish --no-parallel \
--max-workers 1 \
-Dorg.gradle.internal.http.connectionTimeout=120000 \
-Dorg.gradle.internal.http.socketTimeout=120000
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}