Skip to content

pulled over some scripts from FullAge directory and made minor update… #22

pulled over some scripts from FullAge directory and made minor update…

pulled over some scripts from FullAge directory and made minor update… #22

on:
push:
name: update-pkgdown-site
jobs:
update-pkgdown-site:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v1
- name: Install packages
run: Rscript -e 'install.packages(c("pkgdown", "roxygen2", "knitr"))'
- name: Update R function documentation
run: Rscript -e 'roxygen2::roxygenize()'
- name: Update Readme.md
run: Rscript -e 'knitr::knit("Readme.Rmd")'
- name: Build site
run: Rscript -e 'pkgdown::build_site()'
- name: Set up Git
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
- name: Commit all changes
run: |
git add -A && git commit -m 'Build site' || echo "No changes to commit"
git push origin || echo "No changes to commit"