Skip to content

Commit 949542d

Browse files
hotfix
1 parent aa1ae86 commit 949542d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: Rscript -e 'install.packages(c("rmarkdown","blogdown", "remotes"))'
2626

2727
- name: Install hugo
28-
run: Rscript -e 'blogdown::install_hugo(version="0.139.4")' # Latest is currently broken
28+
run: Rscript -e 'tryCatch(blogdown::build_site(), error = function(e) { message(e); quit(status = 1) })' # Latest is currently broken
2929

3030
- name: Build site with blogdown
3131
run: Rscript -e 'if (!blogdown::build_site()) stop("Build failed")'

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: Rscript -e 'blogdown::install_hugo(version="0.139.4")' # Latest is currently broken
2929

3030
- name: Build site with blogdown
31-
run: Rscript -e 'if (!blogdown::build_site()) stop("Build failed")'
31+
run: Rscript -e 'tryCatch(blogdown::build_site(), error = function(e) { message(e); quit(status = 1) })'
3232

3333
- name: Deploy 🚀
3434
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)