Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ on:
- closed

permissions:
contents: write
contents: write
pages: write
id-token: write
pull-requests: write


concurrency: preview-${{ github.ref }}

Expand Down Expand Up @@ -38,9 +42,12 @@ jobs:
jupyter-book build DISCOVER

- name: Deploy PR Preview
# Only run on non-fork PRs to avoid permission errors
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./DISCOVER/_build/html/
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
token: ${{ secrets.PREVIEW_TOKEN || secrets.GITHUB_TOKEN }}