@@ -143,6 +143,7 @@ jobs:
143143 fi
144144 echo "deploy_location=$deploy_location" >> $GITHUB_OUTPUT
145145 - name : Publish artifacts (Artifactory or staged for Central)
146+ if : ${{ steps.deploy-location.outputs.deploy_location == 'artifactory' }}
146147 env :
147148 ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_PRIVATE_KEY }}
148149 ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_PASSPHRASE }}
@@ -164,6 +165,21 @@ jobs:
164165 token : ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
165166 dir : build/publications/repos
166167 fail-on-existing-checksums : false
168+ - name : Still publish docs module to Artifactory when deploy location is Central
169+ if : ${{ steps.deploy-location.outputs.deploy_location == 'central' }}
170+ env :
171+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_PRIVATE_KEY }}
172+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_PASSPHRASE }}
173+ ARTIFACTORY_BUILD_NAME : ${{ github.event.repository.name }}-${{ steps.branch-name.outputs.branch }}
174+ ARTIFACTORY_BUILD_NUMBER : ${{ github.run_id }}
175+ ARTIFACTORY_BUILD_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
176+ ARTIFACTORY_USER_AGENT_NAME : GitHub Actions
177+ ARTIFACTORY_USER_AGENT_VERSION : Unknown
178+ ARTIFACTORY_VCS_REVISION : ${{ github.sha }}
179+ run : |
180+ ./gradlew :spring-pulsar-docs:publishArtifacts \
181+ --stacktrace \
182+ -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
167183 deploy_docs_antora :
168184 name : Deploy Antora Docs
169185 needs : [build_jdk_17, check_samples, scan]
0 commit comments