Skip to content

Merge pull request #5 from PAYONE-GmbH/develop #1

Merge pull request #5 from PAYONE-GmbH/develop

Merge pull request #5 from PAYONE-GmbH/develop #1

name: Run Tests and build
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/test.yml
build-and-publish:
needs: [test]
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle 8.8
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.8
- name: Build Lib
run: ./gradlew :lib:build
- name: Publish package
run: ./gradlew :lib:publishAndReleaseToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}