|
7 | 7 |
|
8 | 8 | jobs:
|
9 | 9 | build-deploy:
|
10 |
| - runs-on: ubuntu-latest |
| 10 | + runs-on: ubuntu-latest # GitHub-hosted Ubuntu 24.04 |
11 | 11 | permissions:
|
12 | 12 | contents: write
|
13 | 13 |
|
14 | 14 | steps:
|
15 |
| - # 1 β check out the repo (unchanged, but updated to latest action revision) |
| 15 | + # 1 ββββββββββββ Check out the repo |
16 | 16 | - name: Check out repository
|
17 | 17 | uses: actions/checkout@v4
|
18 | 18 |
|
19 |
| - # 2 β install the requested version of R (version bumped to 4.5.0) |
| 19 | + # 2 ββββββββββββ Install the matching version of R |
20 | 20 | - name: Set up R
|
21 | 21 | uses: r-lib/actions/setup-r@v2
|
22 | 22 | with:
|
23 |
| - r-version: '4.5.0' |
24 |
| - |
25 |
| - # 3 β SAFER: install all Linux libs detected from renv.lock / DESCRIPTION |
26 |
| - - name: Install system dependencies |
27 |
| - uses: r-lib/actions/setup-system-dependencies@v2 |
28 |
| - |
29 |
| - # 4 β restore R packages via renv, using a fresh cache key |
| 23 | + r-version: '4.5.0' # β matches your lock-file |
| 24 | + |
| 25 | + # 3 ββββββββββββ Install *system* libraries needed by curl, ragg, etc. |
| 26 | + - name: Install Linux libraries needed by R packages |
| 27 | + run: | |
| 28 | + sudo apt-get update |
| 29 | + sudo apt-get install -y \ |
| 30 | + libcurl4-openssl-dev \ |
| 31 | + libfontconfig1-dev \ |
| 32 | + libfreetype6-dev \ |
| 33 | + libx11-dev \ |
| 34 | + pandoc |
| 35 | +
|
| 36 | + # 4 ββββββββββββ Restore the renv library + cache |
30 | 37 | - name: Install R dependencies via renv
|
31 | 38 | uses: r-lib/actions/setup-renv@v2
|
32 | 39 | with:
|
33 |
| - cache-version: 2 # <-- bumped so the R-4.4 cache is not reused |
| 40 | + cache-version: 2 # bump => new cache under R-4.5 |
34 | 41 |
|
35 |
| - # 5 β install Quarto CLI (same as before) |
| 42 | + # 5 ββββββββββββ Install Quarto CLI |
36 | 43 | - name: Set up Quarto
|
37 | 44 | uses: quarto-dev/quarto-actions/setup@v2
|
38 | 45 |
|
39 |
| - # 6 β render the site and push to gh-pages (unchanged) |
| 46 | + # 6 ββββββββββββ Render the site and push to gh-pages |
40 | 47 | - name: Render and Publish
|
41 | 48 | uses: quarto-dev/quarto-actions/publish@v2
|
42 | 49 | with:
|
|
0 commit comments