Replace commit SHAs with version numbers #11
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
# SPDX-FileCopyrightText: 2023 iteratec GmbH | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# This workflow will publish a Java project with Gradle | |
# For gradle wrapper validation see: https:/marketplace/actions/gradle-wrapper-validation | |
# For gradle build see: https:/marketplace/actions/gradle-build-action | |
name: Publish Snapshot to Maven Central | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Validate Gradle wrapper | |
uses: gradle/[email protected] | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Publish to Maven Central | |
run: ./gradlew publish | |
env: | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
DD_CLIENT_VERSION: ${{ github.event.release.tag_name }} |