Skip to content

Commit

Permalink
Fix CI (#114)
Browse files Browse the repository at this point in the history
* brew install --cask

* 不再需要 Homebrew/homebrew-cask-fonts

* 先更新 brew

* 修复文献的引用格式
  • Loading branch information
XiangyunHuang committed May 21, 2024
1 parent 2a957c2 commit cd0d6e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/Render-Book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup R
uses: r-lib/actions/setup-r@v2
Expand All @@ -48,9 +48,11 @@ jobs:

- name: Install ghostscript and Others
run: |
brew install poppler xquartz optipng graphviz
brew tap homebrew/cask-fonts
brew install font-inconsolata font-dejavu
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew update
brew install poppler optipng graphviz
brew install --cask xquartz
brew install --cask font-inconsolata font-dejavu
- name: Install TinyTeX
uses: r-lib/actions/setup-tinytex@v2
Expand Down Expand Up @@ -88,7 +90,7 @@ jobs:
- name: Render Book
id: render-book
run: |
bookdown::render_book("index.Rmd")
bookdown::render_book("index.Rmd", "all")
shell: Rscript {0}

- name: Cp Graphics
Expand All @@ -97,7 +99,7 @@ jobs:
- name: Upload book folder for debug
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Upload Book
path: _book
Expand All @@ -113,7 +115,7 @@ jobs:
# 先本地创建一个 Github Pages 分支推送上来才行
# https://bookdown.org/yihui/bookdown/github.html
- name: Checkout the gh-pages branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: gh-pages
path: book-output
Expand Down
2 changes: 1 addition & 1 deletion MSG-packages.bib
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ @Manual{Matrix
url = {https://CRAN.R-project.org/package=Matrix},
}
@Manual{KernSmooth,
title = {KernSmooth: Functions for Kernel Smoothing Supporting Wand & Jones (1995)},
title = {KernSmooth: Functions for Kernel Smoothing Supporting Wand \& Jones (1995)},
author = {Matt Wand},
year = {2024},
note = {R package version 2.23-24},
Expand Down

0 comments on commit cd0d6e9

Please sign in to comment.