@@ -127,21 +127,25 @@ jobs:
127127 fi
128128 echo "deploy_location=$deploy_location" >> $GITHUB_OUTPUT
129129
130- - name : Publish Artifacts to Artifactory
130+ - name : Stage Local Artifacts for Publishing to Artifactory
131131 if : ${{ steps.deploy-location.outputs.deploy_location == 'artifactory' }}
132- env :
133- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_PRIVATE_KEY }}
134- ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_PASSPHRASE }}
135- ARTIFACTORY_BUILD_NAME : ${{ github.event.repository.name }}-${{ steps.branch-name.outputs.branch }}
136- ARTIFACTORY_BUILD_NUMBER : ${{ github.run_id }}
137- ARTIFACTORY_BUILD_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
138- ARTIFACTORY_USER_AGENT_NAME : GitHub Actions
139- ARTIFACTORY_USER_AGENT_VERSION : Unknown
140- ARTIFACTORY_VCS_REVISION : ${{ github.sha }}
132+ shell : bash
141133 run : |
142- ./gradlew artifactoryPublish \
143- --stacktrace \
144- -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
134+ ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository publishAllPublicationsToDeploymentRepository
135+ - name : Publish Staged Artifacts to Artifactory
136+ if : ${{ steps.deploy-location.outputs.deploy_location == 'artifactory' }}
137+ uses : spring-io/artifactory-deploy-action@dc1913008c0599f0c4b1fdafb6ff3c502b3565ea # v0.0.2
138+ with :
139+ artifact-properties : |
140+ /**/*docs-*.zip::zip.name=spring-pulsar,zip.type=docs,zip.deployed=false
141+ uri : ' https://repo.spring.io'
142+ repository : ' libs-snapshot-local'
143+ build-name : ' spring-pulsar-2.0.x'
144+ folder : ' deployment-repository'
145+ signing-key : ${{ secrets.GPG_PRIVATE_KEY }}
146+ signing-passphrase : ${{ secrets.GPG_PASSPHRASE }}
147+ username : ${{ secrets.ARTIFACTORY_USERNAME }}
148+ password : ${{ secrets.ARTIFACTORY_PASSWORD }}
145149
146150 - name : Stage Local Artifacts for Publishing to Central
147151 if : ${{ steps.deploy-location.outputs.deploy_location == 'central' }}
@@ -153,7 +157,6 @@ jobs:
153157 # rm checksums to work around https://github.com/spring-io/central-publish-action/issues/11
154158 find -name "*.md5" | xargs rm -f
155159 find -name "*.sha*" | xargs rm -f
156-
157160 - name : Publish Staged Artifacts to Central
158161 if : ${{ steps.deploy-location.outputs.deploy_location == 'central' }}
159162 uses : spring-io/central-publish-action@0c03960e9b16fdfe70e2443e1d5393cbc3a35622 # v0.3.0
@@ -162,21 +165,25 @@ jobs:
162165 token : ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
163166 dir : build/publications/repos
164167
165- - name : Still publish docs module to Artifactory when deploy location is Central
168+ - name : Still publish docs module to Artifactory when deploy location is Central (stage)
166169 if : ${{ steps.deploy-location.outputs.deploy_location == 'central' }}
167- env :
168- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_PRIVATE_KEY }}
169- ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_PASSPHRASE }}
170- ARTIFACTORY_BUILD_NAME : ${{ github.event.repository.name }}-${{ steps.branch-name.outputs.branch }}
171- ARTIFACTORY_BUILD_NUMBER : ${{ github.run_id }}
172- ARTIFACTORY_BUILD_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
173- ARTIFACTORY_USER_AGENT_NAME : GitHub Actions
174- ARTIFACTORY_USER_AGENT_VERSION : Unknown
175- ARTIFACTORY_VCS_REVISION : ${{ github.sha }}
170+ shell : bash
176171 run : |
177- ./gradlew :spring-pulsar-docs:artifactoryPublish \
178- --stacktrace \
179- -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
172+ ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository :spring-pulsar-docs:publishAllPublicationsToDeploymentRepository
173+ - name : Still publish docs module to Artifactory when deploy location is Central (publish)
174+ if : ${{ steps.deploy-location.outputs.deploy_location == 'central' }}
175+ uses : spring-io/artifactory-deploy-action@dc1913008c0599f0c4b1fdafb6ff3c502b3565ea # v0.0.2
176+ with :
177+ artifact-properties : |
178+ /**/*docs-*.zip::zip.name=spring-pulsar,zip.type=docs,zip.deployed=false
179+ uri : ' https://repo.spring.io'
180+ repository : ' libs-release-local'
181+ build-name : ' spring-pulsar-2.0.x'
182+ folder : ' deployment-repository'
183+ signing-key : ${{ secrets.GPG_PRIVATE_KEY }}
184+ signing-passphrase : ${{ secrets.GPG_PASSPHRASE }}
185+ username : ${{ secrets.ARTIFACTORY_USERNAME }}
186+ password : ${{ secrets.ARTIFACTORY_PASSWORD }}
180187
181188 deploy_docs_antora :
182189 name : Deploy Antora Docs
0 commit comments