Skip to content

Commit

Permalink
configure preview action
Browse files Browse the repository at this point in the history
  • Loading branch information
MarquessV committed Dec 1, 2023
1 parent ee3729c commit d9e9ddf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d9e9ddf

Please sign in to comment.