File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2023 iteratec GmbH
2+ #
3+ # SPDX-License-Identifier: Apache-2.0
4+
5+ # This workflow will build a Java project with Gradle
6+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+ name : Publish Release to Maven Central
9+
10+ on :
11+ release :
12+ types : [published]
13+
14+ jobs :
15+ build :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v2
19+ - name : Set up JDK 17
20+ uses : actions/setup-java@v1
21+ with :
22+ java-version : 17
23+ - name : Grant execute permission for gradlew
24+ run : chmod +x gradlew
25+ - name : Build with Gradle
26+ run : ./gradlew sign
27+ env :
28+ DD_CLIENT_VERSION : ${{ github.event.release.tag_name }}
29+ SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
30+ SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
31+ - name : Publish to Maven Central
32+ env :
33+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
34+ MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
35+ DD_CLIENT_VERSION : ${{ github.event.release.tag_name }}
36+ run : ./gradlew publish
You can’t perform that action at this time.
0 commit comments