add a GHA to preview PRs #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |