Skip to content

Commit

Permalink
add a GHA to preview PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Dec 16, 2024
1 parent ff0b163 commit 1800605
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
30 changes: 30 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Quarto Preview

on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Render
uses: quarto-dev/quarto-actions/render@v2

- name: Deploy PR Preview
uses: rossjrw/[email protected]
with:
source-dir: ./_book/

0 comments on commit 1800605

Please sign in to comment.