CAPAUT-471 Enhance task names, add gitea action artifact

This commit is contained in:
2024-10-25 14:27:28 +02:00
parent d340eb0c85
commit 84538e4ca4
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
name: Publish artifact to maven repository workflow
on:
workflow_call:
jobs:
publish_maven:
name: Publish distribution
runs-on: docker-ubuntu
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup java runtime
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ vars.JAVA_VERSION }}
- name: Publish to maven
run: |
echo "Target: ${{ gitea.api_url }}/packages/${{ gitea.repository_owner }}/maven"
./gradlew publish -PMAVEN_PUBLISH_ACCESS_TOKEN=${{ secrets.GIT_ACCESS_TOKEN }} -PMAVEN_PUBLISH_REPOSITORY_URL="${{ gitea.api_url }}/packages/${{ gitea.repository_owner }}/maven"