-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (52 loc) · 1.44 KB
/
quarto_gh_pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
on:
push:
branches: [ main ]
pull_request:
types:
- opened
- reopened
- synchronize
- closed
# to be able to trigger a manual build
workflow_dispatch:
name: Render project
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: r-lib/actions/setup-r@v2
with:
r-version: "4.2"
use-public-rspm: true
- uses: r-lib/actions/setup-renv@v2
- uses: viash-io/viash-actions/setup@v6
- name: "Install d2"
run: |
curl -fsSL https://d2lang.com/install.sh | sh -s --
- name: Install Viash
uses: viash-io/viash-actions/setup@main
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.5.54
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site
branch: gh-pages
force: false
clean-exclude: pr-preview/
- name: Deploy preview
if: github.event_name == 'pull_request'
uses: rossjrw/pr-preview-action@v1
with:
source-dir: _site
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto