GH-18 - Setup deployment to Artifactory for general builds.

Tweak build to contain a dedicated ci build profile for Javadoc creation post delombokification. Added an artifactory build profile to set up Artifactory deployment for milestones and snapshots.

Cleanups in sonatype build profile to avoid the definition of a snapshot repository to avoid snapshots accidentally be deployed there.
This commit is contained in:
Oliver Drotbohm
2022-07-27 17:03:02 +02:00
parent 13b83ef947
commit aedd063e3b
2 changed files with 108 additions and 45 deletions

View File

@@ -25,3 +25,9 @@ jobs:
- name: Build with Maven
run: ./mvnw -B
- name: Deploy to Artifactory
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: ./mvnw -B clean deploy -Pci,artifactory