Skip to content

Commit 06cfee7

Browse files
Heiko KieselWeltraumschaf
authored andcommitted
Add release github workflow
Signed-off-by: Heiko Kiesel <heiko.kiesel@iteratec.com>
1 parent 870a3b3 commit 06cfee7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)