Skip to content

Merge pull request #18 from jporobicg/master #6

Merge pull request #18 from jporobicg/master

Merge pull request #18 from jporobicg/master #6

Workflow file for this run

name: deploy to github pages
on:
push:
branches:
- main
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Install R
run: |
sudo apt-get update
sudo apt-get install r-base
- name: Checkout code
uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Install dependencies
run: |
Rscript -e "install.packages('remotes')"
Rscript -e "remotes::install_deps(dependencies = TRUE)"
Rscript -e "install.packages('pkgdown')"
- name: Build and deploy
run: |
Rscript -e "pkgdown::build_site()"
bash deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}