Skip to content

Commit eee7518

Browse files
committed
add quarto_publish GHA. This action will
- set up quarto/R v 4.5.1 - install any dependencies from renv.lock - render and publish the site to gh-pages branch
1 parent 2e5e157 commit eee7518

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on:
2+
workflow_dispatch:
3+
push:
4+
branches: main
5+
6+
name: quarto_publish.yml
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Quarto
18+
uses: quarto-dev/quarto-actions/setup@v2
19+
20+
- name: Install R
21+
uses: r-lib/actions/setup-r@v2
22+
with:
23+
r-version: '4.5.1'
24+
25+
- name: Install R Dependencies
26+
uses: r-lib/actions/setup-renv@v2
27+
with:
28+
cache-version: 1
29+
30+
- name: Render and Publish
31+
uses: quarto-dev/quarto-actions/publish@v2
32+
with:
33+
target: gh-pages
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+

0 commit comments

Comments
 (0)