-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (44 loc) · 1.22 KB
/
publish.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
on:
push:
branches:
- main
paths:
- "website/**"
- ".github/workflows/publish.yml"
name: Render and Publish
permissions:
contents: write
pages: write
jobs:
build-deploy:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: 📘 Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.5.55
tinytex: false
- name: 🆙 Setup R
uses: r-lib/actions/setup-r@v2
- name: 📦 Install dependencies with renv
uses: r-lib/actions/setup-renv@v2
env:
RENV_CONFIG_PAK_ENABLED: true
with:
cache-version: 4
- name: 📦 Install website dependencies
shell: Rscript {0}
run: |
renv::activate()
pak::pak(dependencies = "Config/Needs/website")
- name: 📰 Render and Publish to GitHub Pages
uses: gadenbuie/quarto-actions/publish@quarto-render-working-dir
with:
target: gh-pages
working-directory: website