From 391d7863bfcfc94be505562ad86e825376a89b4f Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Mon, 25 Sep 2023 01:01:11 -0500 Subject: [PATCH] Fix Antora deploy docs --- .github/workflows/deploy-docs-antora.yml | 4 +-- .github/workflows/deploy-docs.yml | 43 ------------------------ 2 files changed, 2 insertions(+), 45 deletions(-) delete mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs-antora.yml b/.github/workflows/deploy-docs-antora.yml index 5eada1a0..7be8b351 100644 --- a/.github/workflows/deploy-docs-antora.yml +++ b/.github/workflows/deploy-docs-antora.yml @@ -19,9 +19,9 @@ jobs: if: github.ref_type == 'branch' env: GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} - run: gh workflow run deploy-docs-antora.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }} + run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }} - name: Dispatch (full build) if: github.ref_type == 'tag' env: GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} - run: gh workflow run deploy-docs-antora.yml -r $(git rev-parse --abbrev-ref HEAD) + run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml deleted file mode 100644 index 6c633550..00000000 --- a/.github/workflows/deploy-docs.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Deploy Release Docs - -on: - workflow_dispatch: - inputs: - releaseVersion: - description: 'Version to deploy (tag or branch name)' - required: true - type: string - -env: - ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} - ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} - -jobs: - deploy_docs: - name: Deploy docs to Artifactory (release) - if: github.repository == 'spring-projects/spring-pulsar' - runs-on: ubuntu-latest - steps: - - id: checkout-source - name: Checkout source code - uses: actions/checkout@v2 - with: - ref: ${{ inputs.releaseVersion }} - token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} - - - name: Set up Gradle - uses: spring-io/spring-gradle-build-action@v1 - with: - java-version: '17' - distribution: 'temurin' - - - name: Build the artifacts - run: | - ./gradlew :spring-pulsar-docs:clean :spring-pulsar-docs:build - - - name: Deploy the artifacts - run: | - ./gradlew :spring-pulsar-docs:deployDocs --info -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" --stacktrace - env: - ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }} - ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}