Skip to content

3.9.8-beta.4

3.9.8-beta.4 #186

# Trigger an SDK publication to Maven Central when a release is created on GitHub.
name: Radar Release Action
on:
release:
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
types: [ prereleased, released ]
jobs:
Build-And-Publish:
runs-on: ubuntu-latest
steps:
# Prepare Environment
- name: Check out repository code
uses: actions/checkout@v2
- name: Configure Java
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
# Gradle Build & Publish
- name: Build SDK and Publish to Maven
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
SNAPSHOT: false
run: ./gradlew build publish