Fix roxygen package doc syntax #281
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr_build | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: macos-latest | |
env: | |
R_CHECK_DONTTEST_EXAMPLES: false | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- uses: r-lib/actions/setup-r@v2 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install dependencies | |
run: | | |
install.packages(c('rmarkdown', 'styler','usethis', 'devtools', 'pkgdown', 'rcmdcheck', 'remotes')) | |
remotes::install_deps(dependencies = TRUE) | |
shell: Rscript {0} | |
- name: Configure git | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub" | |
- name: Document | |
run: | | |
Rscript -e 'devtools::document()' | |
git commit -a \ | |
--author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" \ | |
-m '📚 Render Roxygen documentation' || echo "No changes to commit" | |
- name: Style | |
run: | | |
Rscript -e 'usethis::use_tidy_style()' | |
git add . | |
git commit \ | |
--author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" \ | |
-m '🎨 Style R code' || echo "No changes to commit" | |
- name: Render README | |
run: | | |
Rscript -e 'devtools::build_readme()' | |
git add README.md | |
git commit \ | |
--author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" \ | |
-m '📄 Render README.Rmd' || echo "No changes to commit" | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref }} | |
- name: Docs | |
run: | | |
Rscript -e "devtools::build_site(lazy = TRUE)" | |
git add docs | |
git commit \ | |
--author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" \ | |
-m "📑 Build docs site" || echo "No changes to commit" | |
- name: Push final | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref }} |