-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (35 loc) · 985 Bytes
/
publish.yaml
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
---
# Github Action Workflow to publish
# the Quarto website to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
name: Publish Site
env:
QUARTO_DIR: "."
jobs:
publish:
name: Build & Deploy
runs-on: ubuntu-latest
container:
image: rocker/tidyverse:latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install dependencies
run: install.packages(c("pander", "glue", "geomtextpath"), repos = "https://cloud.r-project.org")
shell: Rscript {0}
- name: Render Quarto Project
run: quarto render --output-dir _site
shell: bash
working-directory: ${{ env.QUARTO_DIR }}
- name: Publish Project
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./${{ env.QUARTO_DIR }}/_site
destination_dir: ${{ env.QUARTO_DIR }}