-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (36 loc) · 1.04 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
on:
push:
branches:
- master
pull_request:
branches:
- master
name: check
jobs:
deploy:
runs-on: macOS-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: R setup
uses: r-lib/actions/setup-r@v2
- name: Install pandoc
run: |
brew install pandoc
brew install --cask xquartz
- name: Install dependencies
run: |
Rscript -e 'install.packages(c("pkgdown", "devtools"))'
Rscript -e 'devtools::install_dev_deps()'
- name: Check package
run: Rscript -e 'devtools::check()'
- name: Build site
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
run: Rscript -e 'pkgdown::build_site_github_pages(install=TRUE)'
- name: Deploy site
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs
clean: true