This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
Update README.md #5
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
on: | |
push: | |
branches: | |
- master | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: r-lib/actions/setup-r@master | |
- uses: r-lib/actions/setup-pandoc@master | |
- name: Install R Depedencies | |
run: | | |
Rscript -e 'install.packages("remotes")' \ | |
-e 'remotes::install_deps(dependencies = TRUE)' \ | |
-e 'install.packages("pkgdown")' | |
- name: Install package | |
run: R CMD INSTALL . | |
- name: Build pkgdown Site | |
run: | | |
Rscript -e "pkgdown::build_site()" | |
- name: Commit Site Changes | |
run: | | |
git config --local user.name "compstatr GHA" | |
git commit -m "Rebuild pkgdown Site" -a | |
- name: Push Site Changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
branch: website |