Skip to content

Commit 70db62f

Browse files
Create publish.yml
A first try... let's see if it works
1 parent 46169d6 commit 70db62f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publish.yml

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
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+
tinytex: true
21+
22+
- name: Install R
23+
uses: r-lib/actions/setup-r@v2
24+
with:
25+
r-version: '4.4.0'
26+
27+
- name: Install R dependencies
28+
run: Rscript -e 'install.packages(c("rmarkdown","quarto","tidyverse", "readxl"))'
29+
30+
- name: Render and Publish
31+
uses: quarto-dev/quarto-actions/publish@v2
32+
with:
33+
target: gh-pages
34+
path: ./book
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)