diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml index 425abef850184..b24a689078d4e 100644 --- a/.github/workflows/comment-commands.yml +++ b/.github/workflows/comment-commands.yml @@ -24,12 +24,10 @@ jobs: concurrency: group: ${{ github.actor }}-preview-docs steps: - - run: | - if curl --output /dev/null --silent --head --fail "https://pandas.pydata.org/preview/${{ github.event.issue.number }}/"; then - curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body": "Website preview of this PR available at: https://pandas.pydata.org/preview/${{ github.event.issue.number }}/"}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments - else - curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body": "No preview found for PR #${{ github.event.issue.number }}. Did the docs build complete?"}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments - fi + - uses: pandas-dev/github-doc-previewer@master + with: + previewer-server: "https://pandas.pydata.org/preview" + artifact-job: "Doc Build and Upload" asv_run: runs-on: ubuntu-22.04 # TODO: Support more benchmarking options later, against different branches, against self, etc diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 73acd9acc129a..924a6263f34d2 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -90,10 +90,3 @@ jobs: name: website path: web/build retention-days: 14 - - - name: Trigger web/doc preview - run: curl -X POST https://pandas.pydata.org/preview/submit/$RUN_ID/$PR_ID/ - env: - RUN_ID: ${{ github.run_id }} - PR_ID: ${{ github.event.pull_request.number }} - if: github.event_name == 'pull_request'