diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 66e1b20..e600f6b 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -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