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"
|
||||||
@@ -38,6 +38,7 @@ publishing {
|
|||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
name = "git.captica.de"
|
||||||
url uri(mavenRepositoryUrl)
|
url uri(mavenRepositoryUrl)
|
||||||
|
|
||||||
credentials(HttpHeaderCredentials) {
|
credentials(HttpHeaderCredentials) {
|
||||||
|
|||||||
Reference in New Issue
Block a user