CAPAUT-471 Enhance task names, add gitea action artifact
This commit is contained in:
19
.gitea/workflows/publish-maven.yaml
Normal file
19
.gitea/workflows/publish-maven.yaml
Normal 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"
|
||||
Reference in New Issue
Block a user