11# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
34on :
45 push :
56 branches : [main, master]
@@ -16,14 +17,18 @@ permissions: read-all
1617jobs :
1718 pkgdown :
1819 runs-on : ubuntu-latest
20+
1921 # Only restrict concurrency for non-PR jobs
2022 concurrency :
2123 group : pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
24+
2225 env :
2326 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
2427 FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 : true
28+
2529 permissions :
2630 contents : write
31+
2732 steps :
2833 - uses : actions/checkout@v4
2934
@@ -37,17 +42,42 @@ jobs:
3742
3843 - uses : r-lib/actions/setup-r-dependencies@v2
3944 with :
40- extra-packages: any:: pkgdown, any::quarto, local::.
45+ extra-packages : r-lib/ pkgdown, any::quarto, local::.
4146 needs : website
4247
43- - name: Check Quarto version
48+ - name : Session info
49+ shell : Rscript {0}
50+ run : |
51+ cat("R version:\n")
52+ print(R.version.string)
53+ cat("\npkgdown version:\n")
54+ print(as.character(packageVersion("pkgdown")))
55+ cat("\nquarto R package version:\n")
56+ print(as.character(packageVersion("quarto")))
57+
58+ - name : Check Quarto
4459 run : |
4560 which quarto
4661 quarto --version
4762
63+ - name : List vignette files
64+ run : |
65+ pwd
66+ ls -la
67+ ls -la vignettes || true
68+ find vignettes -maxdepth 2 -type f | sort || true
69+
70+ - name : Render failing vignette directly
71+ shell : Rscript {0}
72+ run : |
73+ quarto::quarto_render("vignettes/Workflow_Continuous_Exposure.qmd", quiet = FALSE)
74+
4875 - name : Build articles with full logs
76+ shell : Rscript {0}
4977 run : |
50- packageVersion("pkgdown")
51- packageVersion("quarto")
5278 pkgdown::build_articles(quiet = FALSE)
53- shell : Rscript {0}
79+
80+ - name : Build site
81+ shell : Rscript {0}
82+ run : |
83+ pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
0 commit comments