Skip to content

Commit 583516f

Browse files
committed
[CI] Use spring-io/deploy-artifactory-action for deploy-docs-adhoc.yml (take 6)
See #1330 Signed-off-by: onobc <[email protected]>
1 parent e9e991b commit 583516f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/deploy-docs-adhoc.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ jobs:
3333
id: stage-spring-pulsar-docs
3434
shell: bash
3535
run: |
36-
./gradlew -PdeploymentRepository=$(pwd)/deployment-repository \
37-
--rerun-tasks --no-build-cache \
36+
sed -i '' "s/version=2.0.1-SNAPSHOT/version=2.0.0/g" gradle.properties
37+
cat gradle.properties
38+
./gradlew \
39+
-PdeploymentRepository=$(pwd)/deployment-repository \
40+
-PforceLocalPublish=true \
3841
:spring-pulsar-docs:publishAllPublicationsToDeploymentRepository
39-
echo "pwd = $(pwd)"
40-
echo "-PdeploymentRepository=$(pwd)/deployment-repository"
4142
echo "deployRepo=$(pwd)/deployment-repository" >> $GITHUB_OUTPUT
4243
echo "ls -R $(pwd)/deployment-repository"
4344
ls -R $(pwd)/deployment-repository

spring-pulsar-docs/spring-pulsar-docs.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ artifactoryPublish {
108108
}
109109

110110
tasks.withType(PublishToMavenRepository).configureEach {
111-
enabled = ProjectUtils.isSnapshot(project)
111+
enabled = ProjectUtils.isSnapshot(project) || project.hasProperty('forceLocalPublish')
112112
}
113113

114114
tasks.withType(PublishToMavenLocal).configureEach {
115-
enabled = ProjectUtils.isSnapshot(project)
115+
enabled = ProjectUtils.isSnapshot(project) || project.hasProperty('forceLocalPublish')
116116
}

0 commit comments

Comments
 (0)