Skip to content

Commit

Permalink
checkout and build docs in separate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed May 29, 2024
1 parent f25b3d5 commit 5ac6fee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ jobs:
with:
upload-snapshots: true

- name: Publish documentation
- uses: actions/checkout@v3
if: runner.os == 'macOS'
uses: actions/checkout@v3
with:
path: gh-pages
ref: gh-pages

- name: Publish documentation
if: runner.os == 'macOS'
run: |
Rscript -e 'litedown::fuse_book("docs")'
cd docs; cp -r *.html *__files ../gh-pages/; cd ../gh-pages
Expand Down

0 comments on commit 5ac6fee

Please sign in to comment.