-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (31 loc) · 1.11 KB
/
main.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
name: CICD
'on':
- push
- pull_request
jobs:
build:
runs-on: ubuntu-18.04
container:
image: bioconductor/bioconductor_full:devel
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Install Package Dependencies
run: |
Rscript -e "BiocManager::install(c('remotes', 'rcmdcheck', 'covr', 'pkgdown'))"
Rscript -e "remotes::install_deps(dependencies = TRUE)"
- name: System dependencies
run: |
sudo apt-get update && apt-get install -y --no-install-recommends \
texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
pip install ghp-import
- name: Check Package
run: Rscript -e "rcmdcheck::rcmdcheck(error_on = 'error', check_dir = 'check')"
- name: Document Package
run: |
Rscript -e "pkgdown::build_site()"
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
run: |
ghp-import -n docs && \
git push -qf https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git gh-pages