[CI] Update inputs refname for ARTIFACTORY_BUILD_NAME #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docs Ad Hoc | |
| on: | |
| push: | |
| workflow_dispatch: | |
| inputs: | |
| branch-or-tag: | |
| description: 'Branch or tag name to deploy docs for (e.g. v2.0.0)' | |
| required: true | |
| type: string | |
| env: | |
| GCHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }} | |
| DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} | |
| COMMIT_OWNER: ${{ github.event.pusher.name }} | |
| COMMIT_SHA: ${{ github.sha }} | |
| ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
| ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
| GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} | |
| jobs: | |
| deploy_docs_artifactory: | |
| name: Deploy Docs To Artifactory | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'spring-projects/spring-pulsar' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ inputs.branch-or-tag }} | |
| - uses: spring-io/spring-gradle-build-action@v2 | |
| with: | |
| java-version: '25' | |
| distribution: 'liberica' | |
| - name: Publish docs module to Artifactory | |
| env: | |
| ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }} | |
| ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} | |
| ARTIFACTORY_BUILD_NAME: ${{ github.event.repository.name }}-${{ inputs.branch-or-tag }} | |
| ARTIFACTORY_BUILD_NUMBER: ${{ github.run_id }} | |
| ARTIFACTORY_BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| ARTIFACTORY_USER_AGENT_NAME: GitHub Actions | |
| ARTIFACTORY_USER_AGENT_VERSION: Unknown | |
| ARTIFACTORY_VCS_REVISION: ${{ github.sha }} | |
| run: | | |
| ./gradlew :spring-pulsar-docs:artifactoryPublish \ | |
| --stacktrace \ | |
| -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" | |
| deploy_docs_antora: | |
| name: Deploy Antora Docs | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'spring-projects/spring-pulsar' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ inputs.branch-or-tag }} | |
| - uses: spring-io/spring-gradle-build-action@v2 | |
| with: | |
| java-version: '25' | |
| distribution: 'liberica' | |
| - name: Run Antora | |
| run: | | |
| ./gradlew antora | |
| - name: Publish Docs | |
| uses: spring-io/spring-doc-actions/[email protected] | |
| with: | |
| docs-username: ${{ secrets.DOCS_USERNAME }} | |
| docs-host: ${{ secrets.DOCS_HOST }} | |
| docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }} | |
| docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }} | |
| site-path: spring-pulsar-docs/build/site | |
| - name: Bust Clouflare Cache | |
| uses: spring-io/spring-doc-actions/[email protected] | |
| with: | |
| context-root: spring-pulsar | |
| cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }} | |
| cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }} |