Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Merge pull request #168 from chrisbanes/eygraber-patch-1 #441

Merge pull request #168 from chrisbanes/eygraber-patch-1

Merge pull request #168 from chrisbanes/eygraber-patch-1 #441

Workflow file for this run

name: Publish
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/actions/setup-gradle@v4
- name: Deploy to Maven Local for testing
run: ./gradlew bom:publishToMavenLocal
- name: Build the test app to verify it works
run: ./gradlew testapp:assemble
- name: Deploy to Sonatype
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: ./gradlew bom:publish --no-parallel
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 }}