3.17.2 #223
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |