generated from telekom/reuse-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enable snapshot build publishing
- Loading branch information
1 parent
05ed5aa
commit aa5d687
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# SPDX-FileCopyrightText: 2024 Deutsche Telekom AG | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Gradle Publish | ||
on: | ||
workflow_run: | ||
workflows: | ||
- "Gradle Build and Test" | ||
types: | ||
- completed | ||
branches-ignore: | ||
- 'main' | ||
- 'master' | ||
- 'develop' | ||
jobs: | ||
gradle-publish: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
docker: | ||
image: docker:25-dind | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Execute Gradle publish | ||
env: | ||
PUBLISH_USERNAME: ${{ secrets.PUBLISH_USERNAME }} | ||
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }} | ||
PUBLISH_GPG_PRIVATE_KEY: ${{ secrets.PUBLISH_GPG_PRIVATE_KEY }} | ||
PUBLISH_GPG_PASSPHRASE: ${{ secrets.PUBLISH_GPG_PASSPHRASE }} | ||
run: ./gradlew -Pversion=0.0.0-SNAPSHOT-${{GITHUB_RUN_ID}} publish |