Skip to content
Closed
Show file tree
Hide file tree
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
46 changes: 46 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed # Including closed to remove preview when PR is closed.
branches:
- main

jobs:
build:
if: github.event.action != 'closed' # If closing the PR, no publishing
runs-on: ubuntu-latest
# To cancel previous actions that could run on this PR
concurrency:
group: preview-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Check out repository
uses: actions/checkout@v5
with:
fetch-depth: 0 # To enable full access to Git repo
ref: ${{ github.event.pull_request.head.ref }} # Reference of the commit to checkout to. To ensure it's the one of the PR
repository: ${{github.event.pull_request.head.repo.full_name}} # Reference to the branch to checkout to. Useful with PR from forks

# Quarto
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Render Quarto
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
to: html
# env: # For Quarto profiles
# QUARTO_PROFILE: preview

- name: Deploy preview
id: deploy-preview
uses: rossjrw/pr-preview-action@v1.6.2
with:
source-dir: ./_site/
preview-branch: gh-pages
2 changes: 1 addition & 1 deletion index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ To learn more about Quarto websites visit <https://quarto.org/docs/websites>.
</tr>
</tbody>
</table>
```
```
Loading