@@ -143,6 +143,7 @@ jobs:
143
143
fi
144
144
echo "deploy_location=$deploy_location" >> $GITHUB_OUTPUT
145
145
- name : Publish artifacts (Artifactory or staged for Central)
146
+ if : ${{ steps.deploy-location.outputs.deploy_location == 'artifactory' }}
146
147
env :
147
148
ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_PRIVATE_KEY }}
148
149
ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_PASSPHRASE }}
@@ -164,6 +165,21 @@ jobs:
164
165
token : ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
165
166
dir : build/publications/repos
166
167
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"
167
183
deploy_docs_antora :
168
184
name : Deploy Antora Docs
169
185
needs : [build_jdk_17, check_samples, scan]
0 commit comments