Skip to content

Commit 526bec6

Browse files
add github flow
1 parent 52515d6 commit 526bec6

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/quarto-pages.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Quarto Site Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on pushes to main
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# 1. Check out the repository
14+
- name: Checkout repo
15+
uses: actions/checkout@v3
16+
17+
# 2. Install Quarto
18+
- name: Install Quarto
19+
uses: quarto-dev/quarto-actions/setup@v2
20+
with:
21+
version: '1.4.626' # adjust to the latest Quarto version
22+
23+
# 3. Render the site
24+
- name: Render Quarto site
25+
run: quarto render
26+
27+
# 4. Deploy to GitHub Pages
28+
- name: Deploy to GitHub Pages
29+
uses: peaceiris/actions-gh-pages@v5
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./_site
33+
34+

ch4_linear_regression.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ggplot(data = kHeight_child, aes(x = weight, y = height, color = as.factor(male)
5959
```
6060

6161
### Plotting the Prior
62-
```{r Priors for Kung! height,echo = FALSE, warning = FALSE, message = FALSE}
62+
```{r Priors for Kung! height, , echo = FALSE, warning = FALSE, message = FALSE}
6363
6464
# mean prior
6565
ggplot(data = tibble(x = seq(from = 100, to = 250, by = .1)),

0 commit comments

Comments
 (0)