Skip to content

Commit c9351df

Browse files
committed
[CI] Revert change to always publish docs to Artifactory
This commit reverts commit f6b1c70 that did not need to always publish docs module to Artifactory as this fact is abstracted in the PublishArtifactsPlugin. Signed-off-by: onobc <[email protected]>
1 parent b63139e commit c9351df

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ jobs:
142142
deploy_location=central
143143
fi
144144
echo "deploy_location=$deploy_location" >> $GITHUB_OUTPUT
145-
- name: Publish artifacts (Artifactory or staged for Central)
146-
if: ${{ steps.deploy-location.outputs.deploy_location == 'artifactory' }}
145+
- name: Publish artifacts (to Artifactory or stage them for Central)
147146
env:
148147
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
149148
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
@@ -165,21 +164,6 @@ jobs:
165164
token: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
166165
dir: build/publications/repos
167166
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"
183167
deploy_docs_antora:
184168
name: Deploy Antora Docs
185169
needs: [build_jdk_17, check_samples, scan]

0 commit comments

Comments
 (0)