From d9e9ddff56c81d491e29c231a01617fd48579632 Mon Sep 17 00:00:00 2001 From: Marquess Valdez Date: Thu, 30 Nov 2023 16:16:54 -0800 Subject: [PATCH] configure preview action --- .github/workflows/publish-docs.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 216d4acd..deeb96c6 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -6,6 +6,11 @@ on: workflow_dispatch: description: "Manually build and publish quil-py documentation to GitHub pages." pull_request: + types: + - opened + - reopened + - synchronize + - closed concurrency: preview-${{ github.ref }} @@ -34,7 +39,9 @@ jobs: if: ${{ github.event_name == 'pull_request' }} uses: rossjrw/pr-preview-action@v1 with: - source-dir: quiil-py/build/docs + source-dir: quil-py/build/docs + preview-branch: main + umbrella-dir: docs/pr-preview - name: Upload pages artifact if: ${{ github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'quil-py/v') }} - uses: actions/upload-pages-artifact@v2