diff --git a/.github/workflows/artifactory-milestone-release.yml b/.github/workflows/artifactory-milestone-release.yml
new file mode 100644
index 000000000..4c368a39a
--- /dev/null
+++ b/.github/workflows/artifactory-milestone-release.yml
@@ -0,0 +1,38 @@
+name: Artifactory Milestone Release
+
+on:
+ workflow_dispatch:
+ inputs:
+ releaseVersion:
+ description: "Milestone release version"
+ required: true
+
+jobs:
+ build:
+ name: Release milestone to Artifactory
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout source code
+ uses: actions/checkout@v3
+
+ - name: Set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ cache: 'maven'
+
+ - name: Capture release version
+ run: echo RELEASE_VERSION=${{ github.event.inputs.releaseVersion }} >> $GITHUB_ENV
+
+ - name: Update release version
+ run: mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$RELEASE_VERSION
+
+ - name: Enforce release rules
+ run: mvn org.apache.maven.plugins:maven-enforcer-plugin:enforce -Drules=requireReleaseDeps
+
+ - name: Build with Maven and deploy to Artifactory's milestone repository
+ env:
+ ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
+ ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
+ run: mvn -P artifactory-milestone -s settings.xml --batch-mode -Dmaven.test.skip=true deploy
diff --git a/.github/workflows/artifactory-staging-build.yml b/.github/workflows/artifactory-staging-workflow.yml
similarity index 91%
rename from .github/workflows/artifactory-staging-build.yml
rename to .github/workflows/artifactory-staging-workflow.yml
index 73c185663..ae8a04859 100644
--- a/.github/workflows/artifactory-staging-build.yml
+++ b/.github/workflows/artifactory-staging-workflow.yml
@@ -35,4 +35,4 @@ jobs:
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
- run: mvn -P artifactory -s settings.xml --batch-mode -Dmaven.test.skip=true deploy
+ run: mvn -P artifactory-staging -s settings.xml --batch-mode -Dmaven.test.skip=true deploy
diff --git a/pom.xml b/pom.xml
index c87c5ae28..ad9f02726 100644
--- a/pom.xml
+++ b/pom.xml
@@ -340,7 +340,7 @@
- artifactory
+ artifactory-staging
spring-staging
@@ -351,6 +351,18 @@
+
+ artifactory-milestone
+
+
+ spring-milestones
+ https://repo.spring.io/libs-milestone-local
+
+ false
+
+
+
+