Skip to content

Merge pull request #16 from buildkite/tech/dependency-management-and-… #9

Merge pull request #16 from buildkite/tech/dependency-management-and-…

Merge pull request #16 from buildkite/tech/dependency-management-and-… #9

name: Publish SDK SNAPSHOT to Maven Central
on:
push:
branches: [ main ]
jobs:
publish-sdk-snapshot:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: zulu
java-version: 17
- name: Clean project before building SDK
run: ./gradlew clean
- name: Build and publish SDK snapshot to the Maven Central Repository
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --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_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSWORD }}