Skip to content

Commit 1a2323d

Browse files
committed
Init GitHub actions
1 parent ae9cbcd commit 1a2323d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
workflow_dispatch:
3+
push:
4+
branches: main
5+
6+
name: Quarto Publish
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+
with:
20+
version: 1.6.40
21+
22+
- name: Install R
23+
uses: r-lib/actions/setup-r@v2
24+
with:
25+
r-version: '4.4.2'
26+
27+
- name: Install R Dependencies
28+
uses: r-lib/actions/setup-renv@v2
29+
with:
30+
cache-version: 1
31+
32+
- name: Render and Publish
33+
uses: quarto-dev/quarto-actions/publish@v2
34+
with:
35+
target: gh-pages
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
6+
/.quarto/
7+
/_site/

0 commit comments

Comments
 (0)